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

Function kill_process_group

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

Source from the content-addressed store, hash-verified

562#[cfg(not(any(target_os = "espidf", target_os = "wasi")))]
563#[inline]
564pub(crate) fn kill_process_group(pid: Pid, sig: Signal) -> io::Result<()> {
565 unsafe {
566 ret(c::kill(
567 pid.as_raw_nonzero().get().wrapping_neg(),
568 sig.as_raw(),
569 ))
570 }
571}
572
573#[cfg(not(any(target_os = "espidf", target_os = "wasi")))]
574#[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