diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-04-18 03:06:39 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-04-18 03:06:39 +0200 |
commit | d4cc35f3872350716d0ae1cb5777a7a826cf2a27 (patch) | |
tree | ec6f6df3e2aeb8eedfd7bc479aa908dbd7c2274a /sys/src/cmd/ssh.c | |
parent | 378866d6d19d862e0f2a123e30cb8c357fd7017a (diff) |
ssh: close the channel when vt hangs up
Diffstat (limited to 'sys/src/cmd/ssh.c')
-rw-r--r-- | sys/src/cmd/ssh.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/ssh.c b/sys/src/cmd/ssh.c index 970658813..34b53099e 100644 --- a/sys/src/cmd/ssh.c +++ b/sys/src/cmd/ssh.c @@ -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: |