Skip to main content

group_running

Function group_running 

Source
pub fn group_running(group: Pid) -> bool
Expand description

Whether a process of group still runs. A zombie (ended, not yet reaped) doesn’t: a forked task’s shim holds its leader as one, and an agent that is a container’s first process (or a subreaper) adopts its tasks’ orphans, which stay zombies until it reaps them. A process whose main thread ended (pthread_exit) shows as a zombie too while its other threads run: it still runs. Read from /proc; without it, whether the group has any process at all.