Reenable signals for threads after joining.
Submitted by: Marc Olzheim <marcolz@stack.nl>
This commit is contained in:
parent
38816a4377
commit
eae42a5949
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user