The stupid question is the question not asked | |
PerlMonks |
Re: Killing wayward childrenby SpaceAce (Beadle) |
on Nov 19, 2002 at 07:38 UTC ( [id://214048]=note: print w/replies, xml ) | Need Help?? |
Much of the confusion is my fault. 1) I may not have made it clear that the control panel is not a constant process. It is web-based and every function you execute through the control panel is going to be a new process which will die and return the user to the control panel HTML page after it is done doing what it does. So, unless I am mistaken, the process created when a user hits the "Halt script" button would not be the parent of the child process, anyway. 2) I misunderstood the first answer given. It's a useful place for me to start doing some reading but it won't solve the problem I am currently dealing with. I think checking the process group ID is the way for me to go. I don't want to anything to break the program for ActivePerl (I develop using Perl 5.6.1 on Linux), but I can always throw in an eval block to avoid any real problems. Thanks again for all the help, Monks.
SpaceAce
In Section
Seekers of Perl Wisdom
|
|