ssh: wait for remote channel close (thanks piroko)

This commit is contained in:
cinap_lenrek 2018-06-28 20:10:11 +02:00
parent 2f1b8246e2
commit 899ec4d0b5

View file

@ -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();