Finds the process group with the given PGID.
(pgid: Pid)
| 414 | |
| 415 | /// Finds the process group with the given PGID. |
| 416 | pub fn get_process_group(pgid: Pid) -> AxResult<Arc<ProcessGroup>> { |
| 417 | PROCESS_GROUP_TABLE |
| 418 | .read() |
| 419 | .get(&pgid) |
| 420 | .ok_or(AxError::NoSuchProcess) |
| 421 | } |
| 422 | |
| 423 | /// Finds the session with the given SID. |
| 424 | pub fn get_session(sid: Pid) -> AxResult<Arc<Session>> { |
no test coverage detected