ssh: wait for remote channel close (thanks piroko)
This commit is contained in:
parent
2f1b8246e2
commit
899ec4d0b5
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue