in reply to Re: Re: Killing child process
in thread Killing child process

Oops, yeah, I forgot you need to set the process group for the process you want to be a group leader. To do this call setpgrp(0,0); after the fork. In your test program, do it right where you have print "CREATED CHILD $$\n"; and don't do it in the grandchildren.

Replies are listed 'Best First'.
Re: Re: Re: Re: Killing child process
by sgifford (Prior) on Oct 13, 2003 at 03:31 UTC

    Cool, that worked! Thanks, I've always wondered how process groups worked.

    Now, I wonder if this answered the OP's question?... :-)