projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30061b9
)
We do need to send a SIGQUIT to a process/thread, even if it is running
author
Jens Axboe
<jens.axboe@oracle.com>
Tue, 17 Apr 2007 11:42:47 +0000
(13:42 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Tue, 17 Apr 2007 11:42:47 +0000
(13:42 +0200)
It could be stuck in a syscall, and not abort on its own.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fio.c
patch
|
blob
|
blame
|
history
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;