git: 9front

Download patch

ref: 259c83486f2e83ecd8be7750007e71dd2ae340c9
parent: 015aa6d85a2c448566face60d3f7c45523fa7876
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();
--