summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
90a87d4)
This reverts commit
ef5fffa591e583de26c6ce14f9448104d6dfbe79.
The problem with the commit is that if we SIGQUIT a thread, it
gets exited without updating runtime/etc info. And then we
don't get a new status display on exit.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
for_each_td(td, i) {
if (group_id == TERMINATE_ALL || groupid == td->groupid) {
for_each_td(td, i) {
if (group_id == TERMINATE_ALL || groupid == td->groupid) {
- if (td->runstate <= TD_RUNNING)
+ /*
+ * if the thread is running, just let it exit
+ */
+ if (td->runstate < TD_RUNNING)
kill(td->pid, SIGQUIT);
td->terminate = 1;
td->o.start_delay = 0;
kill(td->pid, SIGQUIT);
td->terminate = 1;
td->o.start_delay = 0;