![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re: Re: Re: Killing child processby Thelonius (Priest) |
on Oct 13, 2003 at 02:20 UTC ( #298746=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|