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

Function kill_process

src/backend/libc/process/syscalls.rs:558–560  ·  view source on GitHub ↗
(pid: Pid, sig: Signal)

Source from the content-addressed store, hash-verified

556#[cfg(not(any(target_os = "espidf", target_os = "wasi")))]
557#[inline]
558pub(crate) fn kill_process(pid: Pid, sig: Signal) -> io::Result<()> {
559 unsafe { ret(c::kill(pid.as_raw_nonzero().get(), sig.as_raw())) }
560}
561
562#[cfg(not(any(target_os = "espidf", target_os = "wasi")))]
563#[inline]

Callers

nothing calls this directly

Calls 4

retFunction · 0.50
getMethod · 0.45
as_raw_nonzeroMethod · 0.45
as_rawMethod · 0.45

Tested by

no test coverage detected