Mailing List Archive

[Bug 85] ssh -2 localhost od /bin/ls | true ignore SIGPIPE
https://bugzilla.mindrot.org/show_bug.cgi?id=85


Damien Miller <djm@mindrot.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |djm@mindrot.org




--- Comment #6 from Damien Miller <djm@mindrot.org> 2008-05-09 14:41:19 ---
The problem seems to be that protocol 2 lacks a way to "half close" a
channel, e.g. close its output while keeping its input open.

Markus, does this seem right?

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 85] ssh -2 localhost od /bin/ls | true ignore SIGPIPE [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=85





--- Comment #7 from Markus Friedl <markus@openbsd.org> 2008-05-09 15:04:26 ---
(In reply to comment #6)
> The problem seems to be that protocol 2 lacks a way to "half close" a
> channel, e.g. close its output while keeping its input open.

yes, there is only an 'EOF' message that means:
I will not send data over this channel,
but there is no way to say:
I'm no longer interested in what you want to send to me.

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 85] ssh -2 localhost od /bin/ls | true ignore SIGPIPE [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=85


Damien Miller <djm@mindrot.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Blocks| |1452




--- Comment #8 from Damien Miller <djm@mindrot.org> 2008-05-10 02:30:24 ---
A fix to this bug has been committed and, barring any problems, will be
in OpenSSH 5.1:

> CVSROOT: /cvs
> Module name: src
> Changes by: markus@cvs.openbsd.org 2008/05/09 10:16:06
>
> Modified files:
> usr.bin/ssh : session.c
>
> Log message:
> re-add the USE_PIPES code and enable it.
> without pipes shutdown-read from the sshd does not trigger
> a SIGPIPE when the forked program does a write.
>
> ok djm@
>
>
> CVSROOT: /cvs
> Module name: src
> Changes by: markus@cvs.openbsd.org 2008/05/09 10:17:51
>
> Modified files:
> usr.bin/ssh : channels.c
>
> Log message:
> error-fd race: don't enable the error fd in the select bitmask
> for channels with both in- and output closed, since the channel
> will go away before we call select();
> report, lots of debugging help and ok djm@
>
>
> CVSROOT: /cvs
> Module name: src
> Changes by: markus@cvs.openbsd.org 2008/05/09 10:21:13
>
> Modified files:
> usr.bin/ssh : channels.h clientloop.c nchan.c serverloop.c
>
> Log message:
> unbreak
> ssh -2 localhost od /bin/ls | true
> ignoring SIGPIPE by adding a new channel message (EOW) that signals
> the peer that we're not interested in any data it might send.
> fixes bz #85; discussion, debugging and ok djm@

--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs
[Bug 85] ssh -2 localhost od /bin/ls | true ignore SIGPIPE [ In reply to ]
https://bugzilla.mindrot.org/show_bug.cgi?id=85


Damien Miller <djm@mindrot.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Depends on| |830




--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching someone on the CC list of the bug.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs