From 5b94b897ab4a2be6f5ee69c17fa74b0d937c5cc0 Mon Sep 17 00:00:00 2001 From: Gavin Carr Date: Wed, 21 Mar 2007 04:09:27 +0000 Subject: 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 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; 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 = @_; -- cgit v0.10-9-g596f