svn commit: r250013 - head/lib/libthr/thread

David Xu davidxu at FreeBSD.org
Sun Apr 28 03:13:46 UTC 2013


Author: davidxu
Date: Sun Apr 28 03:13:45 2013
New Revision: 250013
URL: http://svnweb.freebsd.org/changeset/base/250013

Log:
  Remove extra code for SA_RESETHAND, it is not needed because kernel has
  already done this.

Modified:
  head/lib/libthr/thread/thr_sig.c

Modified: head/lib/libthr/thread/thr_sig.c
==============================================================================
--- head/lib/libthr/thread/thr_sig.c	Sun Apr 28 02:23:39 2013	(r250012)
+++ head/lib/libthr/thread/thr_sig.c	Sun Apr 28 03:13:45 2013	(r250013)
@@ -336,13 +336,6 @@ check_deferred_signal(struct pthread *cu
 		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);
 	}
 }


More information about the svn-src-head mailing list