It would appear "process group" isn't the right thing to look for.  I am 
looking into it now ...
     ps -eo "%U%p%P%g%c"
seems to indicate that all of my processes have the same process group.  Even 
all my colleagues have the same process group.  So if I were to "killall -g" I 
would be attempting to kill everything of mine, and all my colleagues too ...  
Not just an isolated process tree.



________________________________________
From: Narayan Desai [[email protected]]
Sent: Thursday, April 02, 2009 5:04 PM
To: Edward Ned Harvey
Cc: [email protected]
Subject: Re: [lopsa-tech] kill process tree

You should be able to do this (at least on linux) with killall -g,
specifying the process group id of set of processes that you want to
kill. Note that this is less than rigorous; child processes can leave
their initial process group. (This is one of my pet peeves about the
unix process management API; it is possible for child processes to
escape control of their parent through a combination of forking and
setsession'ing.)
hth.
 -nld
_______________________________________________
Tech mailing list
[email protected]
http://lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to