ref: d4cc35f3872350716d0ae1cb5777a7a826cf2a27
parent: 378866d6d19d862e0f2a123e30cb8c357fd7017a
author: cinap_lenrek <[email protected]>
date: Mon Apr 17 23:06:39 EDT 2017
ssh: close the channel when vt hangs up
--- a/sys/src/cmd/ssh.c
+++ b/sys/src/cmd/ssh.c
@@ -997,7 +997,7 @@
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: