Steve_BZ has asked for the wisdom of the Perl Monks concerning the following question:
Hi Guys,
This carries on from Catching errors.. I took the advice of saberworks and instituted a custom die and warn routine like this:
BEGIN{ $SIG{__DIE__} = \&customDieFatalErr; $SIG{__WARN__} = \&customWarning; }
So now I get any uncaught perl errors and warnings in my email. It is totally wonderful. Errors are reported automatically by the failing system, and can be fixed before the user even complains!
But What about the dreaded segfault?
Guys, what should I do?
I'm thinking about having a calling routine (a Perl app or bashscript) that catches the error and then reports it to me before automatically restarting the application. What do you think?
Regards,
Steve.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Catching errors (II).
by ikegami (Patriarch) on Oct 30, 2014 at 14:50 UTC | |
by Steve_BZ (Chaplain) on Oct 30, 2014 at 20:48 UTC |