(sig: Signal)
| 573 | #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] |
| 574 | #[inline] |
| 575 | pub(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")))] |
| 580 | pub(crate) fn test_kill_process(pid: Pid) -> io::Result<()> { |