Learn R Programming

rdaemon (version 1.0.6)

interruptProcess: Utility functions for the daemon

Description

Utility functions for the daemon

Usage

interruptProcess(pids)

isProcessAlive(pids)

Arguments

pids

integer(n), the process IDs

Value

`interruptProcess`: invisible()

`isProcessAlive`: logical(1)

Details

`interruptProcess`: send SIGINT signal to the other process. The implementation for Windows is tricky and therefore it is only recommended to run this function in the daemon.

`isProcessAlive`: check whether a process is running

Examples

Run this code
# NOT RUN {
## interrupt a process by the PID
# }
# NOT RUN {
interruptProcess(pids = 1234L)
# }
# NOT RUN {
isProcessAlive(1234L)

# }

Run the code above in your browser using DataLab