job wait is now interruptible

This commit is contained in:
Renan Ribeiro
2025-04-24 09:41:47 -03:00
parent 86d1acdafe
commit 2590b22ae2
3 changed files with 56 additions and 12 deletions

View File

@ -1,5 +1,6 @@
use std::io;
use std::process::Command as CommandSys;
use std::time::{Duration, Instant};
/// Tries to forcefully kill a process by its PID
pub fn kill_by_pid(pid: i64) -> io::Result<()> {