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=6015, NAME=R, AT=2024-10-29 08:51:51.83
#>