From: Jens Axboe Date: Wed, 6 Jul 2011 07:05:31 +0000 (+0200) Subject: Fix for terminating threads in ramp time X-Git-Tag: fio-1.56~29^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=f097728b6be6c52f0d01db6a8f70ae4543daf782;p=fio.git Fix for terminating threads in ramp time Signed-off-by: Jens Axboe --- diff --git a/fio.c b/fio.c index 5ea1a2c3..09bff2a7 100644 --- a/fio.c +++ b/fio.c @@ -102,7 +102,7 @@ static void terminate_threads(int group_id) /* * if the thread is running, just let it exit */ - if (td->runstate < TD_RUNNING) + if (td->runstate < TD_RAMP) kill(td->pid, SIGTERM); else { struct ioengine_ops *ops = td->io_ops;