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=6327, NAME=R, AT=2024-01-21 20:57:52.64
#>