From 846aea3bb8094a6a8f2a06e6977f323901472840 Mon Sep 17 00:00:00 2001 From: kib Date: Mon, 17 Jun 2013 07:11:17 +0000 Subject: [PATCH] MFC r250013 (by davidxu): Remove extra code for SA_RESETHAND, it is not needed because kernel has already done this. Approved by: davidxu git-svn-id: svn://svn.freebsd.org/base/stable/9@251833 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- lib/libthr/thread/thr_sig.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/lib/libthr/thread/thr_sig.c b/lib/libthr/thread/thr_sig.c index 7156362e4..12cb7bd5a 100644 --- a/lib/libthr/thread/thr_sig.c +++ b/lib/libthr/thread/thr_sig.c @@ -341,13 +341,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); } } -- 2.45.0