If you use select, then you don't need to use alarm. But either of these is probably a good choice.

Yeah, the other reason why I'm forking is so I don't have to use select. It seems kludgy to me for some reason.

Also, you can also try to get the parent to trap that is about to exit and notify the child any way you like. You can use END and signal handlers in the parent for this.

Yeah, but you can't trap a kill -9. I have END and SIG{INT} and SIG{TERM} handlers that toast the kid's but I just hate leaving loose ends.

I suppose I'm just being picky.

In reply to Re: Checking up on your parents by $ENV{REMOTE_USER}
in thread Checking up on your parents by $ENV{REMOTE_USER}

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.