Ubuntu Linux

Ubuntu Linux

Based on Debian GNU/Linux, Ubuntu concentrates on usability, regular releases, ease of installation, and freedom from legal restrictions. Ubuntu is sponsored by Canonical Ltd., a private company founded by South African entrepreneur Mark... [more]

Based on Debian GNU/Linux, Ubuntu concentrates on usability, regular releases, ease of installation, and freedom from legal restrictions. Ubuntu is sponsored by Canonical Ltd., a private company founded by South African entrepreneur Mark Shuttleworth.

How to Kill Defunct Process in Unix

Tech Blog - A "defunct" process or a zombie process is a process that is actually finished which depends on a parent process, which for some reason usually due to error did not terminate.

You can usually see defunct process using the ps -ef command, this process mostly are harmless and can be left alone, however they are annoying in my opinion so I often want them removed, the catch is you can't kill an already dead process, good thing Unix has a utility that will help us removed it.

preap forces the parent of the process specified by pid to waitidfor pid, if pid represents a defunct process.

preap attempts to prevent the administrator from unwisely reaping a child process which might soon be reaped by the parent, if:

The process is a child of init.
The parent process is stopped and might wait on the child when it is again allowed to run.
The process has been defunct for less than one minute.

Using preap

$ preap pid


Below are some howto on troubleshooting
Sponsors
Comments
Be the first to leave a comment!
Add a Comment:
Already a member? Log In
Sponsors
About the Author

11 Kudos
Top Geek Articles
Celebrities on the Phone
Cell phones are to celebrities like bats are to baseball: no one runs too far without them.
Why every guy should buy their girlfriend Wii Fit.
Gratuitous...
Hot Geeks -- The Sexiest Geeky Girls
These girls are gorgeous AND they'll play Warcraft with you. Doesn't get much better than that.
More From Zimbio
Copyright © 2009 - Zimbio, Inc. Some rights reserved.