From da28dc62d70922594e0170d771312b4fb8455eaa Mon Sep 17 00:00:00 2001 From: mtm Date: Tue, 6 May 2003 02:30:52 +0000 Subject: o Correct a debug message that refered to the wrong function o Remove an unncecesary if clause Approved by: markm (mentor)(implicit) Reviewd by: jeff --- lib/libthr/thread/thr_sig.c | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-) (limited to 'lib/libthr/thread/thr_sig.c') diff --git a/lib/libthr/thread/thr_sig.c b/lib/libthr/thread/thr_sig.c index dfd488d..d21886e 100644 --- a/lib/libthr/thread/thr_sig.c +++ b/lib/libthr/thread/thr_sig.c @@ -124,28 +124,25 @@ _thread_sig_wrapper(int sig, siginfo_t *info, ucontext_t *context) curthread->state = psd.psd_state; curthread->flags = psd.psd_flags; - /* Check the threads previous state: */ - if (psd.psd_state != PS_RUNNING) { - /* - * Do a little cleanup handling for those threads in - * queues before calling the signal handler. Signals - * for these threads are temporarily blocked until - * after cleanup handling. - */ - switch (psd.psd_state) { - case PS_COND_WAIT: - _cond_wait_backout(curthread); - psd.psd_state = PS_RUNNING; - break; - - case PS_MUTEX_WAIT: - /* _mutex_lock_backout(curthread); XXXTHR */ - psd.psd_state = PS_RUNNING; - break; - - default: - break; - } + /* + * Do a little cleanup handling for those threads in + * queues before calling the signal handler. Signals + * for these threads are temporarily blocked until + * after cleanup handling. + */ + switch (psd.psd_state) { + case PS_COND_WAIT: + _cond_wait_backout(curthread); + psd.psd_state = PS_RUNNING; + break; + + case PS_MUTEX_WAIT: + /* _mutex_lock_backout(curthread); XXXTHR */ + psd.psd_state = PS_RUNNING; + break; + + default: + break; } if (_thread_sigact[sig -1].sa_handler != NULL) { -- cgit v1.1