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:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user