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:
parent
fc21209156
commit
2a04e92b92
@ -2661,6 +2661,13 @@ SignalHandling()
|
||||
$msg !~ m/ redefined at /);
|
||||
$inWarnSub = 0;
|
||||
};
|
||||
$SIG{__DIE__} = sub {
|
||||
my ($msg) = @_;
|
||||
Log 1, "DIE: $msg";
|
||||
stacktrace();
|
||||
exit(1);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user