mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 16:59:18 +00:00
shutdown added to client code to avoid hangs
git-svn-id: https://svn.fhem.de/fhem/trunk@1508 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
734fa0d3bb
commit
e92c735d4d
@ -294,6 +294,7 @@ if(int(@ARGV) == 2) {
|
||||
$server = IO::Socket::INET->new(PeerAddr => $addr);
|
||||
die "Can't connect to $addr\n" if(!$server);
|
||||
syswrite($server, "$ARGV[1] ; quit\n");
|
||||
shutdown($server, 1);
|
||||
while(sysread($server, $buf, 256) > 0) {
|
||||
print($buf);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user