(pgid: u32, signal: &str)
| 555 | } |
| 556 | |
| 557 | fn signal_process_group(pgid: u32, signal: &str) { |
| 558 | let _ = Command::new("kill") |
| 559 | .arg(format!("-{signal}")) |
| 560 | .arg("--") |
| 561 | .arg(format!("-{pgid}")) |
| 562 | .output(); |
| 563 | } |
| 564 | |
| 565 | fn wait_for_process_exit(pid: u32, timeout: Duration) -> bool { |
| 566 | let deadline = Instant::now() + timeout; |
no test coverage detected