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

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@8429 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-04-13 17:01:15 +00:00
parent 7540d971a0
commit 1a1c108bcb

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