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

Function test_kill_process_group

src/backend/libc/process/syscalls.rs:586–588  ·  view source on GitHub ↗
(pid: Pid)

Source from the content-addressed store, hash-verified

584#[cfg(not(any(target_os = "espidf", target_os = "wasi")))]
585#[inline]
586pub(crate) fn test_kill_process_group(pid: Pid) -> io::Result<()> {
587 unsafe { ret(c::kill(pid.as_raw_nonzero().get().wrapping_neg(), 0)) }
588}
589
590#[cfg(not(any(target_os = "espidf", target_os = "wasi")))]
591#[inline]

Callers

nothing calls this directly

Calls 3

retFunction · 0.50
getMethod · 0.45
as_raw_nonzeroMethod · 0.45

Tested by

no test coverage detected