From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <5efbf2a33a53fc0dae26dfaf9f91f9ce@plan9.bell-labs.com> From: "Russ Cox" To: 9fans@cse.psu.edu Subject: Re: [9fans] ssh patch In-Reply-To: <200304140120.VAA06550@plg2.math.uwaterloo.ca> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Tue, 15 Apr 2003 15:43:09 -0400 Topicbox-Message-UUID: 903d0586-eacb-11e9-9e20-41e7f4b1d025 There's one problem with this patch, namely that it breaks cooked interactive mode (ssh -C). In cooked interactive mode, a zero-length read needs to turn into a ^D on the wire. I changed the code to send the ^D only in interactive mode. In non-interactive mode (e.g., when you're piping something into the ssh program), you get the immediate eof that your original patch was after. I think this should solve your problem. Let me know if it doesn't. Russ