This is a discussion on Automatically kill oprhan processes within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi In a AIX 5.3L environment we have a problem : Some processes dont dye and we need to ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi In a AIX 5.3L environment we have a problem : Some processes dont dye and we need to kill them. The problem is that the processes who are under those processes, are adopted by by the process 1 (init). Is there any way, script or utility that permites to kill the main process and automatically kill the processes under it (and not being adopted by process 1)? TIA Karl |
| |||
| Karl69 wrote: > Hi > In a AIX 5.3L environment we have a problem : Some processes dont dye > and we need to kill them. The problem is that the processes who are > under those processes, are adopted by by the process 1 (init). Is there > any way, script or utility that permites to kill the main process and > automatically kill the processes under it (and not being adopted by > process 1)? > > TIA > Karl Your best bet is to find and fix the applications that are causing this behavior. A script to kill orphans or defunct processes is not the way to handle this IMHO. |
| ||||
| On Thu, 10 Mar 2005 11:26:56 -0500, Don Davis <aixdude@yahoo.com> wrote: > > Your best bet is to find and fix the applications that are causing this > behavior. > A script to kill orphans or defunct processes is not the way to handle this > IMHO. > Orphans are not defunct and defuncts are not orphans. The only way to kill would be orphans is to have the parent process catch the signal and do the killing of its children. If you make the parent and its children members of a separate process group you can kill the group instead of the parent process, and all processes in the group would receive the signal. Villy |
| Thread Tools | |
| Display Modes | |
|
|