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.
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to