Skip to main content

orphaned_group_alive

Function orphaned_group_alive 

Source
pub fn orphaned_group_alive(pgid: u32) -> bool
Expand description

True when process group pgid still has members although no process has that pid any more: its leader exited and was reaped, but what the leader started (an agent CLI’s MCP servers) lives on. The kernel does not hand a pid out again while it is still a group id, so kill(-pgid) reaches exactly those survivors. false while the pid is a live process (the caller decides then whether it is the same one), and for an empty group.