mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-02 14:18:49 +00:00
fix: actually kill process if it didn't exit on sigterm
This commit is contained in:
parent
9bbb9e365a
commit
f614941e8f
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue