Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jun 2013 07:11:18 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r251833 - stable/9/lib/libthr/thread
Message-ID:  <201306170711.r5H7BI8N072294@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Jun 17 07:11:17 2013
New Revision: 251833
URL: http://svnweb.freebsd.org/changeset/base/251833

Log:
  MFC r250013 (by davidxu):
  Remove extra code for SA_RESETHAND, it is not needed because kernel has
  already done this.
  
  Approved by:	davidxu

Modified:
  stable/9/lib/libthr/thread/thr_sig.c
Directory Properties:
  stable/9/lib/libthr/   (props changed)

Modified: stable/9/lib/libthr/thread/thr_sig.c
==============================================================================
--- stable/9/lib/libthr/thread/thr_sig.c	Mon Jun 17 06:21:42 2013	(r251832)
+++ stable/9/lib/libthr/thread/thr_sig.c	Mon Jun 17 07:11:17 2013	(r251833)
@@ -341,13 +341,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?201306170711.r5H7BI8N072294>