Added require threads for windows

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@2655 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2013-02-06 19:10:58 +00:00
parent 3bc6d46ffe
commit 83e83d7062

View File

@@ -93,7 +93,9 @@ sub
BlockingKill($)
{
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
@@ -103,6 +105,7 @@ BlockingExit($)
if($^O =~ m/Win/) {
close($client) if($client);
eval "require threads;";
threads->exit();
} else {