(pid: Pid, sig: Signal)
| 562 | #[cfg(not(any(target_os = "espidf", target_os = "wasi")))] |
| 563 | #[inline] |
| 564 | pub(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] |
nothing calls this directly
no test coverage detected