It returns FALSE if the process has already finished.

ps_is_running(p)

Arguments

p

Process handle.

Value

Logical scalar.

Details

It uses the start time of the process to work around pid reuse. I.e.

See also

Examples

p <- ps_handle() p
#> <ps::ps_handle> PID=17400, NAME=R, AT=2020-02-16 11:38:31
ps_is_running(p)
#> [1] TRUE