projects
/
u
/
mdw
/
putty
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
2ac3322
)
After we receive EOF on stdin, we should clear ssh->send_ok so that
author
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 29 Mar 2005 13:10:33 +0000
(13:10 +0000)
committer
simon
<simon@cda61777-01e9-0310-a592-d414129be87e>
Tue, 29 Mar 2005 13:10:33 +0000
(13:10 +0000)
we stop trying to read anything further from stdin. Otherwise we
send a continuous stream of SSH2_MSG_CHANNEL_EOF.
git-svn-id: svn://svn.tartarus.org/sgt/putty@5561
cda61777
-01e9-0310-a592-
d414129be87e
ssh.c
patch
|
blob
|
blame
|
history
diff --git
a/ssh.c
b/ssh.c
index
72c7c2f
..
8ecd060
100644
(file)
--- a/
ssh.c
+++ b/
ssh.c
@@
-8055,6
+8055,7
@@
static void ssh_special(void *handle, Telnet_Special code)
struct Packet *pktout = ssh2_pkt_init(SSH2_MSG_CHANNEL_EOF);
ssh2_pkt_adduint32(pktout, ssh->mainchan->remoteid);
ssh2_pkt_send(ssh, pktout);
+ ssh->send_ok = 0; /* now stop trying to read from stdin */
}
logevent("Sent EOF message");
} else if (code == TS_PING || code == TS_NOP) {