Solved

<defunct> process

Posted on 1997-11-26
3
1,540 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

912 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now