Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 1998 11:30:25 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        Dean Hollister <dean@odyssey.apana.org.au>
Cc:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Killing zombie processes
Message-ID:  <19980526113025.A1334@emsphone.com>
In-Reply-To: <Pine.BSF.3.96.980526235818.18124A-100000@odyssey.apana.org.au>; from "Dean Hollister" on Wed May 27 00:00:48 GMT 1998
References:  <19980526104900.A1032@emsphone.com> <Pine.BSF.3.96.980526235818.18124A-100000@odyssey.apana.org.au>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (May 27), Dean Hollister said:
> On Tue, 26 May 1998, Dan Nelson wrote:
> > When you say "killing the parent doesn't work", do you mean that
> > killing the parent did NOT remove the child's pid, or you couldn't
> > even kill the parent at all?  What does a 'ps axl' print for the
> > processes?
> 
> I could not kill the parent at all.
> 
> bash$ ps -t /dev/ttyv0
>   PID  TT  STAT      TIME COMMAND
>  4803  v0- IEs+   0:00.00  (sh)
>  4994  v0- Z+     0:00.00  (tail)
> 
> See? Here, the sh process will not exit, because of the zombie. It is
> trying to exit, but can't.

It's definitely trying to exit, but the zombie probably isn't stopping
it.  Zombies are processes that have exited completely, but the parent
hasn't checked the returnvalue for them yet.  i.e. the tail command has
finished, and the only remnant of that process is the slot in the
process table (which will be removed once the parent exits or does a
wait() ).  The only resource a zombie takes up is one process table
entry.

Do a "ps axl -t v0", and see what's under the "WCHAN" column for pid
4803.  That's the kernel event the process is waiting for.  If it says
"ttywai", it's trying to write something to the console (make sure
scroll-lock isn't on).

	-Dan Nelson
	dnelson@emsphone.com

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980526113025.A1334>