diff options
Diffstat (limited to 'usr/src/uts/common/os/sig.c')
-rw-r--r-- | usr/src/uts/common/os/sig.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr/src/uts/common/os/sig.c b/usr/src/uts/common/os/sig.c index 808e5d2095..5c72fb749b 100644 --- a/usr/src/uts/common/os/sig.c +++ b/usr/src/uts/common/os/sig.c @@ -181,7 +181,7 @@ eat_signal(kthread_t *t, int sig) */ if (!signal_is_blocked(t, sig)) { t->t_sig_check = 1; /* have thread do an issig */ - if (t->t_state == TS_SLEEP && (t->t_flag & T_WAKEABLE)) { + if (ISWAKEABLE(t) || ISWAITING(t)) { setrun_locked(t); rval = 1; } else if (t->t_state == TS_STOPPED && sig == SIGKILL && @@ -974,6 +974,11 @@ stop(int why, int what) notify = 1; } } + + /* Move waiting thread to run queue */ + if (ISWAITING(tx)) + setrun_locked(tx); + /* * force the thread into the kernel * if it is not already there. |