commit | c1302d44dd1720bebe5308f976b59d879d994fd3 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Mon Mar 05 20:18:31 2007 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Mon Mar 05 20:18:31 2007 +0100 |
tree | 079eba6db5a87052374ac84608159c6562ebaf7b | |
parent | 21ab9d1d05055893ee0b1bed35e55e87b88b422b [diff] [blame] |
Don't kill() running threads Just let them exit nicely. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.c b/fio.c index 45ed354..f183eeb 100644 --- a/fio.c +++ b/fio.c
@@ -67,7 +67,11 @@ for_each_td(td, i) { if (group_id == TERMINATE_ALL || groupid == td->groupid) { - kill(td->pid, SIGQUIT); + /* + * if the thread is running, just let it exit + */ + if (td->runstate < TD_RUNNING) + kill(td->pid, SIGQUIT); td->terminate = 1; td->start_delay = 0; }