This function works even if the process has already finished.

ps_pid(p)

Arguments

p

Process handle.

Value

Process id.

See also

Examples

p <- ps_handle()
p
ps_pid(p)
ps_pid(p) == Sys.getpid()