Skip to main content

Module session

Module session 

Source
Expand description

Ending a started command and everything it started. Through the sandbox helper the command leads a session of its own (procage’s exec_session): what it starts may form process groups (test runners) but never leave the session. A plain command leads a process group.

Functions§

end
Ends every process of the session pid leads, then its process group. Called before reaping pid or soon after: while any member lives the id is no other session’s, and once none does there is nothing to end (pids are handed out in sequence, so another session with it is far off).