From edda82731592c62ca2ff35f6f3318e8af60cbbac Mon Sep 17 00:00:00 2001 From: davidxu Date: Fri, 4 Jul 2003 08:51:37 +0000 Subject: Correctly lock/unlock signal lock. I must be in bad state, need to sleep. --- lib/libpthread/thread/thr_sigwait.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libpthread/thread/thr_sigwait.c') diff --git a/lib/libpthread/thread/thr_sigwait.c b/lib/libpthread/thread/thr_sigwait.c index a2411310..ac44972 100644 --- a/lib/libpthread/thread/thr_sigwait.c +++ b/lib/libpthread/thread/thr_sigwait.c @@ -116,7 +116,8 @@ lib_sigtimedwait(const sigset_t *set, siginfo_t *info, siginfo = curthread->siginfo[i - 1]; KSE_SCHED_UNLOCK(curthread->kse, curthread->kseg); - _kse_critical_leave(crit); + KSE_LOCK_ACQUIRE(curthread->kse, + &_thread_signal_lock); ret = i; goto OUT; } -- cgit v1.1