summaryrefslogtreecommitdiffstats
path: root/lib/libkse/thread/thr_suspend_np.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libkse/thread/thr_suspend_np.c')
-rw-r--r--lib/libkse/thread/thr_suspend_np.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libkse/thread/thr_suspend_np.c b/lib/libkse/thread/thr_suspend_np.c
index 81ee328..0e272ff 100644
--- a/lib/libkse/thread/thr_suspend_np.c
+++ b/lib/libkse/thread/thr_suspend_np.c
@@ -105,10 +105,15 @@ _pthread_suspend_np(pthread_t thread)
PTHREAD_SET_STATE(thread, PS_SUSPENDED);
break;
+ case PS_JOIN:
+ /* Mark the thread as suspended and joining: */
+ thread->suspended = SUSP_JOIN;
+
+ PTHREAD_NEW_STATE(thread, PS_SUSPENDED);
+ break;
case PS_FDLR_WAIT:
case PS_FDLW_WAIT:
case PS_FILE_WAIT:
- case PS_JOIN:
/* Mark the thread as suspended: */
thread->suspended = SUSP_YES;
OpenPOWER on IntegriCloud