Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Nov 1995 15:32:35 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        rberndt@nething.com (Randy Berndt)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Cap'n, there be Zombies here!
Message-ID:  <199511192232.PAA01696@phaeton.artisoft.com>
In-Reply-To: <199511192122.PAA23682@vellocet.insync.net> from "Randy Berndt" at Nov 19, 95 02:28:14 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> Questions:
> 
> How does a zombie get created anyway?

Each process that exits expects its parent process to ignore SIGCHLD *or*
to reap it using wait, waitpid, wait3, or wait4.

A child that has exited but has not been reaped by its parent is a zombie.

> How can I examine a zombie to verify where it is coming from?

Do a "ps -gaxl" and note its parent process ID.  8-).

> Does anything in the code look wrong?

Yeah.  I don't see your fork so I can't tell if you are correctly ignoring
SIGCHLD or reaping the child in you paren't process' main loop.  8-).


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



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