From 899ec4d0b568a6d51a85e5344733a2189a7ba1ec Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 28 Jun 2018 20:10:11 +0200 Subject: ssh: wait for remote channel close (thanks piroko) --- sys/src/cmd/ssh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/src/cmd/ssh.c') 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(); -- cgit v1.2.3