fhem.pl: add 30s alarm timeout for fhem.pl client-mode (Forum #117226)

git-svn-id: https://svn.fhem.de/fhem/trunk@23445 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2020-12-31 14:39:10 +00:00
parent 128fe4e20f
commit 42d09bb0d3

View File

@@ -532,6 +532,7 @@ if(int(@ARGV) > 1 && $ARGV[$#ARGV] ne "-i") {
syswrite($client, $ARGV[$i]."\n");
}
shutdown($client, 1);
alarm(30); #117226
while(sysread($client, $buf, 256) > 0) {
$buf =~ s/\xff\xfb\x01Password: //;
$buf =~ s/\xff\xfc\x01\r\n//;