(pid: Option<Pid>)
| 68 | |
| 69 | #[inline] |
| 70 | pub(crate) fn getpgid(pid: Option<Pid>) -> io::Result<Pid> { |
| 71 | unsafe { |
| 72 | let pgid = ret_c_int(syscall_readonly!(__NR_getpgid, c_int(Pid::as_raw(pid))))?; |
| 73 | debug_assert!(pgid > 0); |
| 74 | Ok(Pid::from_raw_unchecked(pgid)) |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | #[inline] |
| 79 | pub(crate) fn setpgid(pid: Option<Pid>, pgid: Option<Pid>) -> io::Result<()> { |
nothing calls this directly
no test coverage detected