Another tweak to EOF policy: invent an outgoing EOF on receipt of an
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 14 Sep 2011 09:09:35 +0000 (09:09 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 14 Sep 2011 09:09:35 +0000 (09:09 +0000)
commit3effbcf21a3e3af6994d9ab112db9ce7ba44bbce
treeb608a9e5809d72d46a13d6b746bf565641b62f1d
parent4a202fc69e12e9699cd79de9f6457506c663bc07
Another tweak to EOF policy: invent an outgoing EOF on receipt of an
incoming CHANNEL_CLOSE, if it's the main session channel. The idea is
that invocations such as 'plink -T hostname sh' (running a shell
without a remote pty) can be exited by typing 'exit' to the remote
shell, without plink blocking forever waiting for outgoing EOF.

I think it would be better to do the same for all other channel types
too, but that would need an extra API call which I haven't
implemented yet.

git-svn-id: svn://svn.tartarus.org/sgt/putty@9283 cda61777-01e9-0310-a592-d414129be87e
ssh.c