Skip to main content

tree_of

Function tree_of 

Source
fn tree_of(root: u32, procs: &[(u32, Option<u32>, u64)]) -> Vec<u32>
Expand description

root and its descendants, each parent before its children.

A process is taken as a child only if it started no earlier than the parent it names. On Windows a process keeps naming its parent’s PID after the parent has exited, and the OS gives a freed PID to the next new process, so a stranger can name root, or one of its descendants, as its parent. Such stale links can also form a loop, so no process is taken twice. A start time that is not known rules nothing out.