From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,d814e83e56de0f77 X-Google-Attributes: gidfee84,public From: Steve VanDevender Subject: Re: HELP! What to do with defunct processes? And uninterruptable Comsat? Date: 1996/10/30 Message-ID: #1/1 X-Deja-AN: 193277137 references: organization: University of Oregon newsgroups: comp.unix.osf.osf1 Giancarlo Pfeifer 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 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 > 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 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.