Added require threads for windows

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2655 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2013-02-06 19:10:58 +00:00
parent 16f9df94a7
commit 97f3f9b0c2

View File

@@ -93,7 +93,9 @@ sub
BlockingKill($) BlockingKill($)
{ {
my $pid = shift; my $pid = shift;
Log 1, "Terminated $pid" if($pid && kill(9, $pid)); if($^O !~ m/Win/) {
Log 1, "Terminated $pid" if($pid && kill(9, $pid));
}
} }
sub sub
@@ -103,6 +105,7 @@ BlockingExit($)
if($^O =~ m/Win/) { if($^O =~ m/Win/) {
close($client) if($client); close($client) if($client);
eval "require threads;";
threads->exit(); threads->exit();
} else { } else {