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
s>>sp>;s>..|>\u$&ace>g;print;


In reply to Re: Killing wayward children by SpaceAce
in thread Killing wayward children by SpaceAce

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.