Solved

<defunct> process

Posted on 1997-11-26
3
1,546 Views
Last Modified: 2008-03-17
How does a <defunct> process produces itself?
Does many <defunct> process hang the system?

It seems that my program creates a lot of <defunct> process.  

My program is a daemon process in which another program is called by using a system call.

P.S I'm working on IBM RS6000 with AIX 4.1.5
0
Comment
Question by:Rita060297
  • 2
3 Comments
 
LVL 5

Expert Comment

by:julio011597
ID: 2008021
Doesn't your program fork childs??

AIX has some oddities (so i'll leave this as a comment), but, in general, here is how things work:

1. a parent fork's a child;
2. the parent exits without wait'ing for the child;
3. the child exits and, since there's no parent to rip it off, keeps being in the system table as a <defunct>.

Check wait(2) man page on your OS.

-julio
0
 
LVL 2

Accepted Solution

by:
df020797 earned 50 total points
ID: 2008022
<defunct> processes are spawnewd children to other processes who lost connection to their tty (I/O interface vs a shell) or a normal process who in someway lost their tty.

DOnt midn these process, because they will be cleaned up by the OS in itself in its garbage collection mission to retrieve lost system resources.

A process can become <defunct> due to many reasons, many of them not even related to user interaction. So its hard to tell exactly why just THAT process became <defunct>.

0
 
LVL 5

Expert Comment

by:julio011597
ID: 2008023
tty has nothing to do with zombie processes.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question