pub fn by_pgid(pgid: Id) -> Vec<RcProcess> {
    global_state().lock().process_tree.values()
        .filter(|proc| proc.lock().pgid == pgid)
        .map(|proc| proc.clone())
        .collect()
}
/// Get the processes sharing a PGID.
Get the processes sharing a PGID.
Get the processes sharing a PGID .
pub fn by_pgid(pgid: Id) -> Vec<RcProcess> {
    global_state().lock().process_tree.values()
        .filter(|proc| proc.lock().pgid == pgid)
        .map(|proc| proc.clone())
        .collect()
}
pub fn by_pgid ( pgid : Id ) -> Vec < RcProcess > { global_state ( ) . lock ( ) . process_tree . values ( ) . filter ( | proc | proc . lock ( ) . pgid == pgid ) . map ( | proc | proc . clone ( ) ) . collect ( ) }
Get the processes sharing a PGID.
Get the processes sharing a PGID .
pgid
Id