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