From f614941e8f02d68981382bcfd6c1d75ca46e1b5c Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Sat, 9 Sep 2023 16:51:08 +0200 Subject: [PATCH] fix: actually kill process if it didn't exit on sigterm --- src/ui/job_worker/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/job_worker/mod.rs b/src/ui/job_worker/mod.rs index 5419d38..b1a6e8c 100644 --- a/src/ui/job_worker/mod.rs +++ b/src/ui/job_worker/mod.rs @@ -70,7 +70,7 @@ impl JobWorker { thread::spawn(move || { sleep(Duration::from_secs(2)); if let Ok(s) = state.lock() { - if s.exited { + if !s.exited { // process is still alive kill(pid, SIGKILL).expect("Failed to kill process"); }