From: Jens Axboe Date: Tue, 17 Apr 2007 11:42:47 +0000 (+0200) Subject: We do need to send a SIGQUIT to a process/thread, even if it is running X-Git-Tag: fio-1.16~13 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=ef5fffa591e583de26c6ce14f9448104d6dfbe79;p=fio.git 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 --- 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;