Skip to content

List of child processes (process objects) of the process. Note that this typically requires enumerating all processes on the system, so it is a costly operation.

Usage

ps_children(p = ps_handle(), recursive = FALSE)

Arguments

p

Process handle.

recursive

Whether to include the children of the children, etc.

Value

List of ps_handle objects.

Examples

p <- ps_parent(ps_handle())
ps_children(p)
#> [[1]]
#> <ps::ps_handle> PID=10076, NAME=R, AT=2022-06-18 08:48:43
#>