Unix Technical Forum

Automatically kill oprhan processes

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 07:03 AM
Karl69
 
Posts: n/a
Default Automatically kill oprhan processes

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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 07:03 AM
Don Davis
 
Posts: n/a
Default Re: Automatically kill oprhan processes



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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 07:04 AM
Villy Kruse
 
Posts: n/a
Default Re: Automatically kill oprhan processes

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:37 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com