2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

Blocking.pm: do a stacktrace if fork failed and the global stacktrce is enabled (Forum #84372)

git-svn-id: https://svn.fhem.de/fhem/trunk@17553 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2018-10-17 15:56:35 +00:00
parent bb8de23a82
commit dee00f40a1

View File

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