Get rid of the p_stat SZOMB state. p_stat can now only be SIDL, SSLEEP, or
authorMatthew Dillon <dillon@dragonflybsd.org>
Thu, 1 Dec 2005 18:30:13 +0000 (18:30 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Thu, 1 Dec 2005 18:30:13 +0000 (18:30 +0000)
commitf026f3b06279c808b3615fafceae6514f5a0576d
tree2f27bf8f66f3e3c7656d966962ff2abd55cc6a60
parent016bf2a582f0d09f9fe3ed8ed5abb1b0e9f48c7e
Get rid of the p_stat SZOMB state.  p_stat can now only be SIDL, SSLEEP, or
SRUN.  Instead mark zombie processes with a new flag, P_ZOMBIE.  The eproc
code will convert P_ZOMBIE into SZOMB for /bin/ps.

This further isolates the tsleep code from the process status and fixes
a panic when a process in SZOMB tried to tsleep().

Reported-by: Stefan Krueger <skrueger@meinberlikomm.de>
12 files changed:
sys/amd64/amd64/genassym.c
sys/emulation/svr4/svr4_misc.c
sys/i386/i386/genassym.c
sys/kern/kern_descrip.c
sys/kern/kern_exit.c
sys/kern/kern_proc.c
sys/kern/kern_sig.c
sys/kern/kern_synch.c
sys/kern/tty.c
sys/platform/pc32/i386/genassym.c
sys/platform/vkernel/i386/genassym.c
sys/sys/proc.h