ssh: close the channel when vt hangs up

This commit is contained in:
cinap_lenrek 2017-04-18 03:06:39 +02:00
parent 378866d6d1
commit d4cc35f387

View file

@ -997,7 +997,7 @@ main(int argc, char *argv[])
buf, n);
}
send.eof = 1;
sendpkt("bu", MSG_CHANNEL_EOF, 0);
sendpkt("bu", raw ? MSG_CHANNEL_CLOSE : MSG_CHANNEL_EOF, 0);
qunlock(&sl);
break;
case MSG_CHANNEL_REQUEST: