Solved

<defunct> process

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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…
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.:

706 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