From 0d11ddeebedf24e8f6435d6f155a10a32360e337 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Sun, 6 Dec 2015 11:09:16 +0000 Subject: [PATCH] 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 --- fhem/FHEM/01_FHEMWEB.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/01_FHEMWEB.pm b/fhem/FHEM/01_FHEMWEB.pm index 103d28543..8cf407f86 100755 --- a/fhem/FHEM/01_FHEMWEB.pm +++ b/fhem/FHEM/01_FHEMWEB.pm @@ -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