2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-02-07 16:59:18 +00:00

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 fc21209156
commit 2a04e92b92

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);
};
}