diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2003-05-04 16:17:01 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2003-05-04 16:17:01 +0000 |
| commit | 40791d9d15e29400c0df0702333382bfcbe48866 (patch) | |
| tree | 3d8c66d5e73ff5869e8a7e1754ef39d0b512e848 /lib/libpthread/thread/thr_sig.c | |
| parent | 452855111a8cd6f1584d9743a67b11e275943bce (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_sig.c')
| -rw-r--r-- | lib/libpthread/thread/thr_sig.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libpthread/thread/thr_sig.c b/lib/libpthread/thread/thr_sig.c index cd699db09df9..ba31073da63b 100644 --- a/lib/libpthread/thread/thr_sig.c +++ b/lib/libpthread/thread/thr_sig.c @@ -316,11 +316,10 @@ thr_sig_find(struct kse *curkse, int sig, siginfo_t *info) } else if ((pthread->state == PS_DEAD) || (pthread->state == PS_DEADLOCK) || - ((pthread->flags & THR_FLAGS_EXITING) != 0)) + THR_IS_EXITING(pthread) || THR_IS_SUSPENDED(pthread)) ; /* Skip this thread. */ else if ((handler_installed != 0) && - !sigismember(&pthread->tmbx.tm_context.uc_sigmask, sig) && - ((pthread->flags & THR_FLAGS_SUSPENDED) == 0)) { + !sigismember(&pthread->tmbx.tm_context.uc_sigmask, sig)) { if (pthread->state == PS_SIGSUSPEND) { if (suspended_thread == NULL) suspended_thread = pthread; @@ -710,9 +709,7 @@ thr_sig_add(struct pthread *pthread, int sig, siginfo_t *info) * will run the signal handler when it is resumed. */ pthread->active_priority |= THR_SIGNAL_PRIORITY; - if ((pthread->flags & THR_FLAGS_SUSPENDED) != 0) - THR_SET_STATE(pthread, PS_SUSPENDED); - else if ((pthread->flags & THR_FLAGS_IN_RUNQ) == 0) + if ((pthread->flags & THR_FLAGS_IN_RUNQ) == 0) THR_RUNQ_INSERT_TAIL(pthread); } } |
