summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2009-01-23 14:37:16 +0100
committerTobi Oetiker <tobi@oetiker.ch>2009-01-23 14:37:16 +0100
commit4e6be34511159935b2f2f833961265743c3a827a (patch)
tree44c45b4067f29d17a366f313a25c075262d9411d /lib
parent111f2f3d4f584eed8ecbf902d4770dceaab2390c (diff)
downloadsmokeping-4e6be34511159935b2f2f833961265743c3a827a.tar.gz
smokeping-4e6be34511159935b2f2f833961265743c3a827a.tar.xz
disable __DIE__ inside eval
Diffstat (limited to 'lib')
-rw-r--r--lib/Smokeping.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index c53b3ed..59a9ee3 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -3620,7 +3620,7 @@ sub daemonize_me ($) {
open STDERR, '>/dev/null' or die "ERROR: Redirecting STDERR to /dev/null: $!";
# send warnings and die messages to log
$SIG{__WARN__} = sub { do_log ((shift)."\n") };
- $SIG{__DIE__} = sub { do_log ((shift)."\n"); };
+ $SIG{__DIE__} = sub { return if $^S; do_log ((shift)."\n"); exit 1 };
}
}