diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-06-28 20:10:11 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-06-28 20:10:11 +0200 |
commit | 899ec4d0b568a6d51a85e5344733a2189a7ba1ec (patch) | |
tree | d9019abd6ac3aafb004e032a2f1606ddd7b1d6d7 | |
parent | 2f1b8246e23f8d3e88885822efcf25f3b4474bff (diff) |
ssh: wait for remote channel close (thanks piroko)
-rw-r--r-- | sys/src/cmd/ssh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/ssh.c b/sys/src/cmd/ssh.c index 2933686f4..7aa8d1bd8 100644 --- a/sys/src/cmd/ssh.c +++ b/sys/src/cmd/ssh.c @@ -1278,7 +1278,7 @@ Next1: switch(recvpkt()){ /* parent reads and dispatches packets */ if(n > 0) { send.pid = n; - while((send.eof|recv.eof) == 0){ + while(recv.eof == 0){ recvpkt(); qlock(&sl); dispatch(); |