Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/kern/kern_lwp.c,v rcsdiff: /ftp/cvs/cvsroot/src/sys/kern/kern_lwp.c,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.24 retrieving revision 1.25 diff -u -p -r1.24 -r1.25 --- src/sys/kern/kern_lwp.c 2004/02/13 11:36:23 1.24 +++ src/sys/kern/kern_lwp.c 2004/03/02 09:15:26 1.25 @@ -1,4 +1,4 @@ -/* $NetBSD: kern_lwp.c,v 1.24 2004/02/13 11:36:23 wiz Exp $ */ +/* $NetBSD: kern_lwp.c,v 1.25 2004/03/02 09:15:26 yamt Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.24 2004/02/13 11:36:23 wiz Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.25 2004/03/02 09:15:26 yamt Exp $"); #include "opt_multiprocessor.h" @@ -599,9 +599,9 @@ lwp_exit2(struct lwp *l) l->l_stat = LSZOMB; if (l->l_flag & L_DETACHED) { /* Nobody waits for detached LWPs. */ - LIST_REMOVE(l, l_sibling); if ((l->l_flag & L_PROCEXIT) == 0) { + LIST_REMOVE(l, l_sibling); p = l->l_proc; p->p_nlwps--; }