"be consistent" | |
PerlMonks |
Re^2: Killing a hanging child processby chb (Deacon) |
on Dec 22, 2006 at 08:36 UTC ( [id://591278]=note: print w/replies, xml ) | Need Help?? |
I need to kill an exec()ed process together with all processes it starts, too. I would like to use the setpgid() trick, but I don't understand why I have to use setpgid() in the father process. Why is it a race condition if I use setpgid() in the child only?
In Section
Seekers of Perl Wisdom
|
|