have a different process act as a "nanny" and just restart your program if it dies
Another reason is that "die" won't always work: a "killed" program doesn't receive a "die" signal - it just dies.
In reply to Re: Problem with using $SIG{__DIE__} to restart program
by fglock
in thread Problem with using $SIG{__DIE__} to restart program
by newrisedesigns
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |