diff options
Diffstat (limited to 'lib/libpthread/thread/thr_sigwait.c')
-rw-r--r-- | lib/libpthread/thread/thr_sigwait.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |