Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Steve VanDevender <stevev@hexadecimal.uoregon.edu>
Subject: Re: HELP! What to do with defunct processes? And uninterruptable Comsat?
Date: 1996/10/30	[thread overview]
Message-ID: <x74tjcqeda.fsf@hexadecimal.uoregon.edu> (raw)
In-Reply-To: Pine.OSF.3.95.961030174250.7333A-100000@griffo.mat.unimi.it


Giancarlo Pfeifer <pfeifer@griffo.mat.unimi.it> writes:

> I've an account on an Alpha Station 255 (233MHz) running Digital UNIX
> Version V4.0 and I'm facing a nasty problem that I don't really know how
> to deal with.
> All happened when I decided to kill a process using a "kill -9 #pid" 
> command. The process immediately entered the state of <defunct> process,
> generating at the same time, a comsat process with the status of
> uninterruptable process. Every time I get new mail, the system
> automatically generates a new comsat process.
> The question is: how can I (or my sysop) definitely remove the <defunct>
> process? and how can I (or my sysop) change the status of comsat to make
> it killable? And what is it exactly, and why does it become
> uninterruptable?

A <defunct> process is also known as a zombie process.  A zombie is a
child process whose parent has not used the wait() system call to gather
the child's exit status.  For as long as the parent does not call wait,
the process table entry for the child remains so that eventually the
parent can get the exit status of the child.  However, the zombie process
takes up no resources other than the process table slot -- a zombie does
not occupy memory or hold any other system resources.

If you kill the process with "kill -9", it cannot catch or respond to
the signal in any way; as soon as the signal is delivered, the kernel
kills the process immediately.  Therefore the zombie cannot be directly
responsible for spawning any other processes.

You probably need to look at the output of "ps alx" to find out which
process has spawned the zombies (examine the PPID field of the output).
If the parent will never wait() for the zombie children then your only
recourse is to kill the parent process; at that point the children will
be inherited by 'init', which does a constant wait() loop to gather any
orphaned zombies.



      reply	other threads:[~1996-10-30  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-30  5:00 HELP! What to do with defunct processes? And uninterruptable Comsat? Giancarlo Pfeifer
1996-10-30  5:00 ` Steve VanDevender [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox