summaryrefslogtreecommitdiff
path: root/lib/libpthread/thread/thr_sig.c
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2003-07-09 01:39:24 +0000
committerDavid Xu <davidxu@FreeBSD.org>2003-07-09 01:39:24 +0000
commit9efd29f394f344f62e0e10ac7004222a753b0320 (patch)
tree80c8781231782fa76c4e196e2e44be0c7b5c35d4 /lib/libpthread/thread/thr_sig.c
parent0527fc8806b03004630f6958e150198b479da389 (diff)
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_sig.c')
-rw-r--r--lib/libpthread/thread/thr_sig.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libpthread/thread/thr_sig.c b/lib/libpthread/thread/thr_sig.c
index 2800cc7e6260..6e95cdd8f8a7 100644
--- a/lib/libpthread/thread/thr_sig.c
+++ b/lib/libpthread/thread/thr_sig.c
@@ -984,12 +984,13 @@ _thr_signal_init(void)
void
_thr_signal_deinit(void)
{
- sigset_t tmpmask, oldmask;
+ struct pthread *curthread = _get_curthread();
+ sigset_t tmpmask;
int i;
SIGFILLSET(tmpmask);
SIG_CANTMASK(tmpmask);
- __sys_sigprocmask(SIG_SETMASK, &tmpmask, &oldmask);
+ __sys_sigprocmask(SIG_SETMASK, &tmpmask, NULL);
/* Enter a loop to get the existing signal status: */
for (i = 1; i <= _SIG_MAXSIG; i++) {
/* Check for signals which cannot be trapped: */
@@ -1005,6 +1006,6 @@ _thr_signal_deinit(void)
PANIC("Cannot set signal handler info");
}
}
- __sys_sigprocmask(SIG_SETMASK, &oldmask, NULL);
+ __sys_sigprocmask(SIG_SETMASK, &curthread->sigmask, NULL);
}