Skip to content

Resume process execution with SIGCONT preemptively checking whether PID has been reused. On Windows this has the effect of resuming all process threads.

Usage

ps_resume(p = ps_handle())

Arguments

p

Process handle.

Examples

px <- processx::process$new("sleep", "10")
p <- ps_handle(px$get_pid())
p
#> <ps::ps_handle> PID=7847, NAME=sleep, AT=2024-01-21 20:58:06.62
ps_suspend(p)
#> NULL
ps_status(p)
#> [1] "stopped"
ps_resume(p)
#> NULL
ps_status(p)
#> [1] "sleeping"
ps_kill(p)
#> NULL