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

Function test_kill_process

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

Source from the content-addressed store, hash-verified

578
579#[cfg(not(any(target_os = "espidf", target_os = "wasi")))]
580pub(crate) fn test_kill_process(pid: Pid) -> io::Result<()> {
581 unsafe { ret(c::kill(pid.as_raw_nonzero().get(), 0)) }
582}
583
584#[cfg(not(any(target_os = "espidf", target_os = "wasi")))]
585#[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