daemon-utils: Utility functions for the daemon

Description Usage Arguments Details Value Examples

Description

Utility functions for the daemon

Usage

1
2
3

Arguments

pids

integer(n), the process IDs

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

Value

'interruptProcess': invisible()

'isProcessAlive': logical(1)

Examples

1
2
3
4
5
6
## interrupt a process by the PID
## Not run: 
interruptProcess(pids = 1234L)

## End(Not run)
isProcessAlive(1234L)

rdaemon documentation built on Sept. 16, 2021, 1:07 a.m.