Source-Changes-HG archive

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

[src/trunk]: src/sys/kern sigpost(): check for LSZOMB, not l_refcnt == 0.



details:   https://anonhg.NetBSD.org/src/rev/1cb8e4f27c59
branches:  trunk
changeset: 970528:1cb8e4f27c59
user:      ad <ad%NetBSD.org@localhost>
date:      Thu Mar 26 21:25:26 2020 +0000

description:
sigpost(): check for LSZOMB, not l_refcnt == 0.

diffstat:

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

diffs (27 lines):

diff -r e70ba404cf1a -r 1cb8e4f27c59 sys/kern/kern_sig.c
--- a/sys/kern/kern_sig.c       Thu Mar 26 21:15:14 2020 +0000
+++ b/sys/kern/kern_sig.c       Thu Mar 26 21:25:26 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_sig.c,v 1.384 2020/02/01 02:23:23 riastradh Exp $ */
+/*     $NetBSD: kern_sig.c,v 1.385 2020/03/26 21:25:26 ad Exp $        */
 
 /*-
  * Copyright (c) 2006, 2007, 2008, 2019 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.384 2020/02/01 02:23:23 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.385 2020/03/26 21:25:26 ad Exp $");
 
 #include "opt_ptrace.h"
 #include "opt_dtrace.h"
@@ -1117,7 +1117,7 @@
         * If the LWP is on the way out, sigclear() will be busy draining all
         * pending signals.  Don't give it more.
         */
-       if (l->l_refcnt == 0)
+       if (l->l_stat == LSZOMB)
                return 0;
 
        SDT_PROBE(proc, kernel, , signal__send, l, p, sig, 0, 0);



Home | Main Index | Thread Index | Old Index