[Nagiosplug-checkins] Nagios-Plugin/lib/Nagios/Plugin Functions.pm, 1.12, 1.13
Gavin Carr
gonzai at users.sourceforge.net
Wed Mar 21 05:09:29 CET 2007
Update of /cvsroot/nagiosplug/Nagios-Plugin/lib/Nagios/Plugin
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv31732/lib/Nagios/Plugin
Modified Files:
Functions.pm
Log Message:
Revert $SIG{__DIE__} handler in Functions - failing on later perls.
Index: Functions.pm
===================================================================
RCS file: /cvsroot/nagiosplug/Nagios-Plugin/lib/Nagios/Plugin/Functions.pm,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- Functions.pm 21 Mar 2007 00:52:52 -0000 1.12
+++ Functions.pm 21 Mar 2007 04:09:27 -0000 1.13
@@ -46,13 +46,6 @@
my $_fake_exit = 0;
sub _fake_exit { @_ ? $_fake_exit = shift : $_fake_exit };
-# Tweak default die handling: die is cool because it allows capturing both return codes and
-# output via eval, but the Nagios Plugin Guidelines like STDOUT over STDERR
-$SIG{__DIE__} = sub {
- print STDOUT shift;
- exit $!;
-};
-
sub get_shortname {
my %arg = @_;
More information about the Commits
mailing list