mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-28 02:44:53 +00:00
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:
parent
a67305eb17
commit
7d73df98e8
@ -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//;
|
||||
|
Loading…
x
Reference in New Issue
Block a user