in reply to (tye)Re3: multiple fork()
in thread multiple fork()

So how do you write a long running daemon in perl that needs to be able to catch terms, ints, and hups. This seems to be a major lacking. (sorry for the eternal node).

Replies are listed 'Best First'.
(tye)Re4: multiple fork()
by tye (Sage) on Apr 17, 2001 at 01:25 UTC

    Yes, it sucks. I'm a fan of long-running daemons exec()ing themselves from time-to-time even if they weren't written in Perl. And you can usually handle quite a few signals before you get bitten.

    With luck, someone who follows perl5porters more closely than I will chime in and note that certain bits of Perl's code have been protected from signals recently. Otherwise it may be Perl6 before a complete solution appears.

            - tye (but my friends call me "Tye")