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