From ef5fffa591e583de26c6ce14f9448104d6dfbe79 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 17 Apr 2007 13:42:47 +0200 Subject: [PATCH] We do need to send a SIGQUIT to a process/thread, even if it is running It could be stuck in a syscall, and not abort on its own. Signed-off-by: Jens Axboe --- fio.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fio.c b/fio.c index 60a2a1b9..c7694456 100644 --- 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; -- 2.25.1