Source-Changes-HG archive

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

[src/trunk]: src/sys/kern sigpost: don't interfere coredump. PR/45032



details:   https://anonhg.NetBSD.org/src/rev/344b38972871
branches:  trunk
changeset: 767668:344b38972871
user:      yamt <yamt%NetBSD.org@localhost>
date:      Tue Jul 26 13:33:43 2011 +0000

description:
sigpost: don't interfere coredump.  PR/45032

diffstat:

 sys/kern/kern_sig.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d044b8cca5f7 -r 344b38972871 sys/kern/kern_sig.c
--- a/sys/kern/kern_sig.c       Tue Jul 26 13:24:38 2011 +0000
+++ b/sys/kern/kern_sig.c       Tue Jul 26 13:33:43 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_sig.c,v 1.308 2011/04/27 00:38:37 rmind Exp $     */
+/*     $NetBSD: kern_sig.c,v 1.309 2011/07/26 13:33:43 yamt 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.308 2011/04/27 00:38:37 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.309 2011/07/26 13:33:43 yamt Exp $");
 
 #include "opt_ptrace.h"
 #include "opt_compat_sunos.h"
@@ -1175,7 +1175,7 @@
                break;
 
        case LSSUSPENDED:
-               if ((prop & SA_KILL) != 0) {
+               if ((prop & SA_KILL) != 0 && (l->l_flag & LW_WCORE) != 0) {
                        /* lwp_continue() will release the lock. */
                        lwp_continue(l);
                        return 1;



Home | Main Index | Thread Index | Old Index