01_FHEMWEB.pm: do not crash on windows if plotfork is specified

git-svn-id: https://svn.fhem.de/fhem/trunk@10113 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2015-12-06 11:09:16 +00:00
parent b9349ba8c2
commit 0d11ddeebe

View File

@@ -417,7 +417,8 @@ FW_Read($$)
my $pid = fhemFork();
if($pid) { # success, parent
use constant PRIO_PROCESS => 0;
setpriority(PRIO_PROCESS, $pid, getpriority(PRIO_PROCESS,$pid) + $pf);
setpriority(PRIO_PROCESS, $pid, getpriority(PRIO_PROCESS,$pid) + $pf)
if($^O !~ m/Win/);
# a) while child writes a new request might arrive if client uses
# pipelining or
# b) parent doesn't know about ssl-session changes due to child writing