summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_sigsuspend.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/thread/thr_sigsuspend.c')
-rw-r--r--lib/libpthread/thread/thr_sigsuspend.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_sigsuspend.c b/lib/libpthread/thread/thr_sigsuspend.c
index 9ada1b2..5916156 100644
--- a/lib/libpthread/thread/thr_sigsuspend.c
+++ b/lib/libpthread/thread/thr_sigsuspend.c
@@ -57,9 +57,7 @@ _sigsuspend(const sigset_t *set)
THR_SET_STATE(curthread, PS_SIGSUSPEND);
/* Wait for a signal: */
- _thr_sched_switch(curthread);
-
- THR_UNLOCK_SWITCH(curthread);
+ _thr_sched_switch_unlocked(curthread);
/* Always return an interrupted error: */
errno = EINTR;
OpenPOWER on IntegriCloud