Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Apr 2013 03:13:46 +0000 (UTC)
From:      David Xu <davidxu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r250013 - head/lib/libthr/thread
Message-ID:  <201304280313.r3S3Dkwu094921@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304280313.r3S3Dkwu094921>