We do need to send a SIGQUIT to a process/thread, even if it is running
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index 60a2a1b918e7a8e6de5e4793870ddb87ba27e1b4..c76944568b25d4dbcf23a2e06d4758743544dda6 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -69,10 +69,7 @@ static void terminate_threads(int group_id)
 
        for_each_td(td, i) {
                if (group_id == TERMINATE_ALL || groupid == td->groupid) {
-                       /*
-                        * if the thread is running, just let it exit
-                        */
-                       if (td->runstate < TD_RUNNING)
+                       if (td->runstate <= TD_RUNNING)
                                kill(td->pid, SIGQUIT);
                        td->terminate = 1;
                        td->o.start_delay = 0;