g/c process state SDEAD - it's not used anymore after 'reaper' removal

This commit is contained in:
jdolecek 2004-01-11 19:39:48 +00:00
parent 93cbc84a2f
commit 475a5858bf
2 changed files with 4 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_lwp.c,v 1.19 2004/01/04 11:33:31 jdolecek Exp $ */
/* $NetBSD: kern_lwp.c,v 1.20 2004/01/11 19:39:48 jdolecek Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.19 2004/01/04 11:33:31 jdolecek Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_lwp.c,v 1.20 2004/01/11 19:39:48 jdolecek Exp $");
#include "opt_multiprocessor.h"
@ -237,7 +237,6 @@ lwp_suspend(l, t)
t->l_stat = LSSUSPENDED;
break;
case LSIDL:
case LSDEAD:
case LSZOMB:
return (EINTR); /* It's what Solaris does..... */
case LSSTOP:
@ -670,7 +669,6 @@ proc_representative_lwp(p)
if (suspended)
return suspended;
break;
case SDEAD:
case SZOMB:
/* Doesn't really matter... */
return (LIST_FIRST(&p->p_lwps));

View File

@ -1,4 +1,4 @@
/* $NetBSD: proc.h,v 1.187 2004/01/11 18:37:52 jdolecek Exp $ */
/* $NetBSD: proc.h,v 1.188 2004/01/11 19:39:48 jdolecek Exp $ */
/*-
* Copyright (c) 1986, 1989, 1991, 1993
@ -277,9 +277,8 @@ struct proc {
#define SACTIVE 2 /* Process is not stopped */
#define SSTOP 4 /* Process debugging or suspension */
#define SZOMB 5 /* Awaiting collection by parent */
#define SDEAD 6 /* Process is almost a zombie */
#define P_ZOMBIE(p) ((p)->p_stat == SZOMB || (p)->p_stat == SDEAD)
#define P_ZOMBIE(p) ((p)->p_stat == SZOMB)
/* These flags are kept in p_flag. */
#define P_ADVLOCK 0x00000001 /* Process may hold a POSIX advisory lock */