[Bug 2863] sshd with ControlMaster does not close child STDERR on client exit

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed May 2 09:55:34 AEST 2018


Geoffrey Thomas <bugzilla at ldpreload.com> changed:

           What    |Removed                     |Added
                 CC|                            |bugzilla at ldpreload.com

--- Comment #1 from Geoffrey Thomas <bugzilla at ldpreload.com> ---
I looked into this with Nelson a bit - it looks like this is the /* XXX
*/ in channel_pre_open in channel.c. That function appears to properly
handle stdin and stdout, but stderr is only select()ed on if stdin and
stdout are open, which seems wrong. I also don't see anything that ever
closes stderr, other than the process exiting.

This might be a client-side thing (client not sending a shutdown for
stderr) but I'm not following the logic of nchan.c  well enough to see
who should be handling stderr.

You are receiving this mail because:
You are watching the assignee of the bug.

More information about the openssh-bugs mailing list