Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenSSH: Bugs

[Bug 1673] pseudoterminal option (-t) breaks standard out/error separation

 

 

OpenSSH bugs RSS feed   Index | Next | Previous | View Threaded


bugzilla-daemon at bugzilla

Nov 20, 2009, 7:52 PM

Post #1 of 2 (512 views)
Permalink
[Bug 1673] pseudoterminal option (-t) breaks standard out/error separation

https://bugzilla.mindrot.org/show_bug.cgi?id=1673

Damien Miller <djm [at] mindrot> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |djm [at] mindrot
Status|NEW |RESOLVED
Resolution| |WONTFIX

--- Comment #1 from Damien Miller <djm [at] mindrot> 2009-11-21 14:52:44 EST ---
This is expected. When a pty is allocated, all of stdin, stdout and
stderr point to the pty (see "ls -l /proc/$$/fd" on Linux). Being on
the other side of the pty, sshd has no way to determine which fd the
child process issued the write() to. Changing the fd allocation so that
stderr was a pipe instead of a pty would be a significant departure
from standard practice and would probably break quite a few things.

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


bugzilla-daemon at bugzilla

Nov 22, 2009, 6:34 AM

Post #2 of 2 (436 views)
Permalink
[Bug 1673] pseudoterminal option (-t) breaks standard out/error separation [In reply to]

https://bugzilla.mindrot.org/show_bug.cgi?id=1673

--- Comment #2 from raker1000 [at] yahoo 2009-11-23 01:34:55 EST ---
(In reply to comment #1)
> This is expected. When a pty is allocated, all of stdin, stdout and
> stderr point to the pty (see "ls -l /proc/$$/fd" on Linux). Being on
> the other side of the pty, sshd has no way to determine which fd the
> child process issued the write() to. Changing the fd allocation so that
> stderr was a pipe instead of a pty would be a significant departure
> from standard practice and would probably break quite a few things.


I see. I wasn't sure whether this was intended behavior. Thank you for
the prompt attention.

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

OpenSSH bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.