Source-Changes-HG archive

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

[src/trunk]: src/sys/kern fix assertion - non-alive processes are in SZOMB st...



details:   https://anonhg.NetBSD.org/src/rev/c13f74d812f6
branches:  trunk
changeset: 557547:c13f74d812f6
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Jan 11 18:51:15 2004 +0000

description:
fix assertion - non-alive processes are in SZOMB state now
fixes PR kern/24033 by Martin Husemann

diffstat:

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

diffs (27 lines):

diff -r f38e12beebb1 -r c13f74d812f6 sys/kern/kern_event.c
--- a/sys/kern/kern_event.c     Sun Jan 11 18:42:25 2004 +0000
+++ b/sys/kern/kern_event.c     Sun Jan 11 18:51:15 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_event.c,v 1.17 2003/07/18 17:34:07 fvdl Exp $     */
+/*     $NetBSD: kern_event.c,v 1.18 2004/01/11 18:51:15 jdolecek Exp $ */
 /*-
  * Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon%FreeBSD.org@localhost>
  * All rights reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.17 2003/07/18 17:34:07 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_event.c,v 1.18 2004/01/11 18:51:15 jdolecek Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -424,7 +424,7 @@
                return;
 
        p = kn->kn_ptr.p_proc;
-       KASSERT(p->p_stat == SDEAD || pfind(kn->kn_id) == p);
+       KASSERT(p->p_stat == SZOMB || pfind(kn->kn_id) == p);
 
        /* XXXSMP lock the process? */
        SLIST_REMOVE(&p->p_klist, kn, knote, kn_selnext);



Home | Main Index | Thread Index | Old Index