fhem.pl: add die signal handler (Forum #35796)

git-svn-id: https://svn.fhem.de/fhem/trunk@8429 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-04-13 17:01:15 +00:00
parent ac66a2e923
commit 1df69ee132

View File

@@ -2661,6 +2661,13 @@ SignalHandling()
$msg !~ m/ redefined at /);
$inWarnSub = 0;
};
$SIG{__DIE__} = sub {
my ($msg) = @_;
Log 1, "DIE: $msg";
stacktrace();
exit(1);
};
}