Skip to content

It returns FALSE if the process has already finished.

Usage

ps_is_running(p = ps_handle())

Arguments

p

Process handle.

Value

Logical scalar.

Details

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

Examples

p <- ps_handle()
p
#> <ps::ps_handle> PID=6327, NAME=R, AT=2024-01-21 20:57:52.64
ps_is_running(p)
#> [1] TRUE