From eae42a59499700f045162bf0a73e2ada12056884 Mon Sep 17 00:00:00 2001 From: Daniel Eischen Date: Wed, 31 Dec 2003 13:41:54 +0000 Subject: [PATCH] Reenable signals for threads after joining. Submitted by: Marc Olzheim --- lib/libc_r/uthread/uthread_join.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/libc_r/uthread/uthread_join.c b/lib/libc_r/uthread/uthread_join.c index 75ec1f0d64e7..a410a01e1ac1 100644 --- a/lib/libc_r/uthread/uthread_join.c +++ b/lib/libc_r/uthread/uthread_join.c @@ -138,6 +138,9 @@ _pthread_join(pthread_t pthread, void **thread_return) ret = curthread->join_status.error; if ((ret == 0) && (thread_return != NULL)) *thread_return = curthread->join_status.ret; + + /* Undefer and handle pending signals, yielding if necessary: */ + _thread_kern_sig_undefer(); } else { /* * The thread exited (is dead) without being detached, and no