ssh host echo bla | echo bla
Nicolas Williams
Nicolas.Williams at ubsw.com
Thu Dec 20 05:51:34 EST 2001
On Wed, Dec 19, 2001 at 05:26:39PM +0100, Markus Friedl wrote:
> On Tue, Dec 18, 2001 at 05:56:31PM -0500, Nicolas Williams wrote:
> > The patch should be to nchan.c:chan_write_failed2() - it should check
> > whether the fildes being closed is stdout (or stderr), and if so, print
> > an error / log an error and then call fatal().
> >
> > Simple enough, yes? Correct? I think so.
>
> i think the ssh client should close the 'channel' when both the local
> read and write FDs are closed.
I'm not sure I understand. You're saying that SSH should close the [ssh]
channel (ok, yes) but only if stdin *and* stdout are broken/closed? I
would change that "and" to "or" and add stderr. And after closing the
ssh channel the client would exit, yes? Assuming no in-use port/agent/X
forwardings.
> -m
Cheers,
Nico
--
-DISCLAIMER: an automatically appended disclaimer may follow. By posting-
-to a public e-mail mailing list I hereby grant permission to distribute-
-and copy this message.-
Visit our website at http://www.ubswarburg.com
This message contains confidential information and is intended only
for the individual named. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses. The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission. If
verification is required please request a hard-copy version. This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.
More information about the openssh-unix-dev
mailing list