homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

what "defunct" process means?

 6:44 pm on Apr 8, 2004 (gmt 0)


I see some processes in "top" having "(defunt)" with the process name. What does it mean? What should I do about those "problematic" processes?

Thank you.




 4:53 am on Apr 9, 2004 (gmt 0)

A "defunct" is also known as a "zombie". It means that it's finished - but still depends on a "parent" which is still alive.

The only way to kill a zombie is with a gun shot to the brain^W^W^W^W^W^W^W^W finding the parent process and terminating it.

As nasty as they are on the process table they are not harmful and don't consume resources.


 5:13 am on Apr 9, 2004 (gmt 0)

Thank you Duckula for the reply.

It makes me comfortable.


 9:47 am on Apr 9, 2004 (gmt 0)

Other than Windows, unix manages an explicit parent-child relationships between processes. When a child process dies, the parent will receive a notification. It is then the duty of the parent process to explicitly take notice of the childs demise by using the wait() system call. The return value of the wait() is the process ID of the child, which gives the parent exact control about which of its children are still alive.

As long as the parent hasn't called wait(), the system needs to keep the dead child in the global process list, because that's the only place where the process ID is stored. The purpose of the "zombies" is really just for the system to remember the process ID, so that it can inform the parent process about it on request. If the parent "forgets" to collect on its children, then the zombie will stay undead forever. Well, almost forever. If the parent itself dies, then "init" (the system process with the ID 0) will take over fostership over its children and catch up on the neglected parental duties.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved