diff --git a/CHANGED b/CHANGED index a7893d3ed..65d1dfb2a 100644 --- a/CHANGED +++ b/CHANGED @@ -520,3 +520,4 @@ - bugfix: Add binmode to 01_fhemweb.pm for windows - bugfix: Uniform check for windows, enable CUL for windows. - bugfix: CUL/HMS parsing patches from Peter + - bugfix: Fixes for Windows by Klaus diff --git a/fhem.pl b/fhem.pl index f67d65bec..853f6b458 100755 --- a/fhem.pl +++ b/fhem.pl @@ -151,7 +151,7 @@ my %defaultattr; # Default attributes my %intAt; # Internal at timer hash. my $nextat; # Time when next timer will be triggered. my $intAtCnt=0; -my $cvsid = '$Id: fhem.pl,v 1.76 2009-07-26 09:20:07 rudolfkoenig Exp $'; +my $cvsid = '$Id: fhem.pl,v 1.77 2009-08-04 08:03:57 rudolfkoenig Exp $'; my $namedef = "where is either:\n" . "- a single device name\n" . @@ -254,6 +254,12 @@ if(int(@ARGV) == 2) { my $ret = CommandInclude(undef, $attr{global}{configfile}); die($ret) if($ret); +if($^O =~ m/Win/ && !$attr{global}{nofork}) { + Log 1, "Forcing 'attr global nofork' on WINDOWS"; + Log 1, "set it in the config file to avoud this message"; + $attr{global}{nofork}=1; +} + # Go to background if the logfile is a real file (not stdout) if($attr{global}{logfile} ne "-" && !$attr{global}{nofork}) { defined(my $pid = fork) || die "Can't fork: $!";