summaryrefslogtreecommitdiffstats
path: root/lib/Nagios/Plugin
diff options
context:
space:
mode:
authorGavin Carr <gonzai@users.sourceforge.net>2007-03-21 04:09:27 +0000
committerGavin Carr <gonzai@users.sourceforge.net>2007-03-21 04:09:27 +0000
commit5b94b897ab4a2be6f5ee69c17fa74b0d937c5cc0 (patch)
treeb19beb56f2c2d3ad1a553e043c203c325b697f6e /lib/Nagios/Plugin
parent2984a99e41d40637ab89b7a1f69830cca04c81bc (diff)
downloadmonitoring-plugin-perl-5b94b897ab4a2be6f5ee69c17fa74b0d937c5cc0.tar.gz
Revert $SIG{__DIE__} handler in Functions - failing on later perls.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/Nagios-Plugin/trunk@1645 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/Nagios/Plugin')
-rw-r--r--lib/Nagios/Plugin/Functions.pm7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/Nagios/Plugin/Functions.pm b/lib/Nagios/Plugin/Functions.pm
index 751251f..eb44976 100644
--- a/lib/Nagios/Plugin/Functions.pm
+++ b/lib/Nagios/Plugin/Functions.pm
@@ -46,13 +46,6 @@ our %STATUS_TEXT = reverse %ERRORS;
46my $_fake_exit = 0; 46my $_fake_exit = 0;
47sub _fake_exit { @_ ? $_fake_exit = shift : $_fake_exit }; 47sub _fake_exit { @_ ? $_fake_exit = shift : $_fake_exit };
48 48
49# Tweak default die handling: die is cool because it allows capturing both return codes and
50# output via eval, but the Nagios Plugin Guidelines like STDOUT over STDERR
51$SIG{__DIE__} = sub {
52 print STDOUT shift;
53 exit $!;
54};
55
56sub get_shortname { 49sub get_shortname {
57 my %arg = @_; 50 my %arg = @_;
58 51