mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 02:10:32 +00:00
Blocking.pm: the last change made it unusable for Windows (Forum #79222)
git-svn-id: https://svn.fhem.de/fhem/trunk@15409 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
5214b4e90c
commit
4510ad8423
@ -131,7 +131,7 @@ BlockingStart(;$)
|
|||||||
if($^O =~ m/Win/) {
|
if($^O =~ m/Win/) {
|
||||||
# MaxNr of concurrent forked processes @Win is 64, and must use wait as
|
# MaxNr of concurrent forked processes @Win is 64, and must use wait as
|
||||||
# $SIG{CHLD} = 'IGNORE' does not work.
|
# $SIG{CHLD} = 'IGNORE' does not work.
|
||||||
wait;
|
wait if(!$h->{telnet} || !$defs{$h->{telnet}});
|
||||||
} else {
|
} else {
|
||||||
use POSIX ":sys_wait_h";
|
use POSIX ":sys_wait_h";
|
||||||
waitpid(-1, WNOHANG); # Forum #58867
|
waitpid(-1, WNOHANG); # Forum #58867
|
||||||
|
Loading…
x
Reference in New Issue
Block a user