MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / set_reaper_status

Function set_reaper_status

src/process/procctl.rs:221–233  ·  view source on GitHub ↗
(reaper: bool)

Source from the content-addressed store, hash-verified

219/// [FreeBSD: `procctl(PROC_REAP_ACQUIRE/RELEASE,…)`]: https://man.freebsd.org/cgi/man.cgi?query=procctl&sektion=2
220#[inline]
221pub 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
235const PROC_REAP_STATUS: c_int = 4;
236

Callers 1

test_reaper_statusFunction · 0.85

Calls 1

procctlFunction · 0.70

Tested by 1

test_reaper_statusFunction · 0.68