ref: 899ec4d0b568a6d51a85e5344733a2189a7ba1ec
parent: 2f1b8246e23f8d3e88885822efcf25f3b4474bff
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Jun 28 16:10:11 EDT 2018
ssh: wait for remote channel close (thanks piroko)
--- a/sys/src/cmd/ssh.c
+++ b/sys/src/cmd/ssh.c
@@ -1278,7 +1278,7 @@
/* 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();