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 |
In Section
Seekers of Perl Wisdom