Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Add parent notification on SIGCONT as required by w...



details:   https://anonhg.NetBSD.org/src/rev/39f8ac1432a9
branches:  trunk
changeset: 344589:39f8ac1432a9
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Apr 06 00:48:30 2016 +0000

description:
Add parent notification on SIGCONT as required by waitid(2)/wait6(2)

diffstat:

 sys/kern/kern_sig.c |  14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r db1110f5ba85 -r 39f8ac1432a9 sys/kern/kern_sig.c
--- a/sys/kern/kern_sig.c       Wed Apr 06 00:47:15 2016 +0000
+++ b/sys/kern/kern_sig.c       Wed Apr 06 00:48:30 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_sig.c,v 1.323 2016/04/04 23:07:06 christos Exp $  */
+/*     $NetBSD: kern_sig.c,v 1.324 2016/04/06 00:48:30 christos Exp $  */
 
 /*-
  * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.323 2016/04/04 23:07:06 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.324 2016/04/06 00:48:30 christos Exp $");
 
 #include "opt_ptrace.h"
 #include "opt_dtrace.h"
@@ -1377,9 +1377,13 @@
                         * signal itself (if waiting on event - process runs,
                         * otherwise continues sleeping).
                         */
-                       if ((prop & SA_CONT) != 0 && action == SIG_DFL) {
-                               KASSERT(signo != SIGKILL);
-                               goto deliver;
+                       if ((prop & SA_CONT) != 0) {
+                               p->p_xsig = SIGCONT;
+                               child_psignal(p, 0);
+                               if (action == SIG_DFL) {
+                                       KASSERT(signo != SIGKILL);
+                                       goto deliver;
+                               }
                        }
                } else if ((prop & SA_STOP) != 0) {
                        /*



Home | Main Index | Thread Index | Old Index