Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Oct 2017 08:14:41 +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-11@freebsd.org
Subject:   svn commit: r324918 - stable/11/sys/kern
Message-ID:  <201710230814.v9N8Ef44037612@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Mon Oct 23 08:14:41 2017
New Revision: 324918
URL: https://svnweb.freebsd.org/changeset/base/324918

Log:
  MFC r324670:
  Improve assertion that an ignored or blocked signal is not delivered.

Modified:
  stable/11/sys/kern/kern_sig.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/kern/kern_sig.c
==============================================================================
--- stable/11/sys/kern/kern_sig.c	Mon Oct 23 08:13:23 2017	(r324917)
+++ stable/11/sys/kern/kern_sig.c	Mon Oct 23 08:14:41 2017	(r324918)
@@ -3045,8 +3045,10 @@ postsig(int sig)
 		/*
 		 * If we get here, the signal must be caught.
 		 */
-		KASSERT(action != SIG_IGN && !SIGISMEMBER(td->td_sigmask, sig),
-		    ("postsig action"));
+		KASSERT(action != SIG_IGN, ("postsig action %p", action));
+		KASSERT(!SIGISMEMBER(td->td_sigmask, sig),
+		    ("postsig action: blocked sig %d", sig));
+
 		/*
 		 * Set the new mask value and also defer further
 		 * occurrences of this signal.



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