BlockingCall should return the right thing for blockingKill

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@2967 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2013-03-22 21:48:51 +00:00
parent 28d31b8c83
commit 5b274b936c

View File

@@ -69,11 +69,11 @@ BlockingCall($$@)
}
if($pid) {
my %h = ( pid=>$pid, fn=>$blockingFn, finishFn=>$finishFn );
if($timeout) {
my %h = ( pid=>$pid, fn=>$blockingFn, finishFn=>$finishFn );
InternalTimer(gettimeofday()+$timeout, "BlockingKill", \%h, 0);
}
return $pid;
return \%h;
}
# Child here