[Ilugc] Killing an enitre process tree

  • From: girishvenkatachalam@xxxxxxxxx (Girish Venkatachalam)
  • Date: Sun Oct 29 15:54:15 2006

On Sun, Oct 29, 2006 at 02:37:49PM +0530, Prashanth Mohan wrote:

Nice option.. but I dont want Py_Prog1 to die :-(. I could kill the
current process group if I wanted all the 3 to die.

Not sure but you could use setsid(1) on Shell1 or whatever session you want to 
eliminate.

But setsid also means that you lose control of the tty and all that.

I can think of other ways to achieve your goal but this may suit your purpose 
better.

Please do let me know if this does not work since something tells me I must be 
mistaken.

regards,
Girish

Other related posts: