summaryrefslogtreecommitdiffstats
path: root/lib/libthr
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2013-04-28 03:13:45 +0000
committerdavidxu <davidxu@FreeBSD.org>2013-04-28 03:13:45 +0000
commitd4951792e550b0e8317a420bf4695ccd77226686 (patch)
treeead74a90e14bbf450f7d50b533858d7668672787 /lib/libthr
parent4410412e99cee64a46ff86a3df7093afe458f680 (diff)
downloadFreeBSD-src-d4951792e550b0e8317a420bf4695ccd77226686.zip
FreeBSD-src-d4951792e550b0e8317a420bf4695ccd77226686.tar.gz
Remove extra code for SA_RESETHAND, it is not needed because kernel has
already done this.
Diffstat (limited to 'lib/libthr')
-rw-r--r--lib/libthr/thread/thr_sig.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/libthr/thread/thr_sig.c b/lib/libthr/thread/thr_sig.c
index 2d66184..e67bb6e 100644
--- a/lib/libthr/thread/thr_sig.c
+++ b/lib/libthr/thread/thr_sig.c
@@ -336,13 +336,6 @@ check_deferred_signal(struct pthread *curthread)
memcpy(&info, &curthread->deferred_siginfo, sizeof(siginfo_t));
/* remove signal */
curthread->deferred_siginfo.si_signo = 0;
- if (act.sa_flags & SA_RESETHAND) {
- struct sigaction tact;
-
- tact = act;
- tact.sa_handler = SIG_DFL;
- _sigaction(info.si_signo, &tact, NULL);
- }
handle_signal(&act, info.si_signo, &info, uc);
}
}
OpenPOWER on IntegriCloud