aboutsummaryrefslogtreecommitdiff
path: root/lib/libc_r
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2003-12-31 13:41:54 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2003-12-31 13:41:54 +0000
commiteae42a59499700f045162bf0a73e2ada12056884 (patch)
tree05b8f7617dd9e810fda8e3f40e5448f2609da00f /lib/libc_r
parent38816a4377a3610217f601077efeb93c92e37cfd (diff)
Reenable signals for threads after joining.
Submitted by: Marc Olzheim <marcolz@stack.nl>
Notes
Notes: svn path=/head/; revision=124018
Diffstat (limited to 'lib/libc_r')
-rw-r--r--lib/libc_r/uthread/uthread_join.c3
1 files changed, 3 insertions, 0 deletions
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