(reaper: bool)
| 219 | /// [FreeBSD: `procctl(PROC_REAP_ACQUIRE/RELEASE,…)`]: https://man.freebsd.org/cgi/man.cgi?query=procctl&sektion=2 |
| 220 | #[inline] |
| 221 | pub fn set_reaper_status(reaper: bool) -> io::Result<()> { |
| 222 | unsafe { |
| 223 | procctl( |
| 224 | if reaper { |
| 225 | PROC_REAP_ACQUIRE |
| 226 | } else { |
| 227 | PROC_REAP_RELEASE |
| 228 | }, |
| 229 | None, |
| 230 | ptr::null_mut(), |
| 231 | ) |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | const PROC_REAP_STATUS: c_int = 4; |
| 236 |