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

Function kill_current_process_group

src/backend/libc/process/syscalls.rs:575–577  ·  view source on GitHub ↗
(sig: Signal)

Source from the content-addressed store, hash-verified

573#[cfg(not(any(target_os = "espidf", target_os = "wasi")))]
574#[inline]
575pub(crate) fn kill_current_process_group(sig: Signal) -> io::Result<()> {
576 unsafe { ret(c::kill(0, sig.as_raw())) }
577}
578
579#[cfg(not(any(target_os = "espidf", target_os = "wasi")))]
580pub(crate) fn test_kill_process(pid: Pid) -> io::Result<()> {

Callers

nothing calls this directly

Calls 2

retFunction · 0.50
as_rawMethod · 0.45

Tested by

no test coverage detected