2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-04 05:16:45 +00:00

Blocking.pm: add an event and stacktrace if fork fails

git-svn-id: https://svn.fhem.de/fhem/trunk@17552 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-10-17 15:52:58 +00:00
parent 29b0e609b4
commit bb8de23a82

View File

@ -172,6 +172,8 @@ BlockingStart(;$)
my $pid = fhemFork; my $pid = fhemFork;
if(!defined($pid)) { if(!defined($pid)) {
Log 1, "Cannot fork: $!"; Log 1, "Cannot fork: $!";
stacktrace() if(AttrVal("global", "verbose", 1) >= 5);
DoTrigger("global", "CANNOT_FORK", 1);
return $curr; return $curr;
} }