ssh: close the channel when vt hangs up
This commit is contained in:
parent
378866d6d1
commit
d4cc35f387
|
@ -997,7 +997,7 @@ main(int argc, char *argv[])
|
||||||
buf, n);
|
buf, n);
|
||||||
}
|
}
|
||||||
send.eof = 1;
|
send.eof = 1;
|
||||||
sendpkt("bu", MSG_CHANNEL_EOF, 0);
|
sendpkt("bu", raw ? MSG_CHANNEL_CLOSE : MSG_CHANNEL_EOF, 0);
|
||||||
qunlock(&sl);
|
qunlock(&sl);
|
||||||
break;
|
break;
|
||||||
case MSG_CHANNEL_REQUEST:
|
case MSG_CHANNEL_REQUEST:
|
||||||
|
|
Loading…
Reference in a new issue