| Summary: | pseudoterminal option (-t) breaks standard out/error separation | ||
|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | raker1000 |
| Component: | ssh | Assignee: | Assigned to nobody <unassigned-bugs> |
| Status: | CLOSED WONTFIX | ||
| Severity: | normal | CC: | djm |
| Priority: | P2 | ||
| Version: | 5.1p1 | ||
| Hardware: | Other | ||
| OS: | Other | ||
|
Description
raker1000
2009-11-20 21:32:59 AEDT
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. (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. Mass move of bugs RESOLVED->CLOSED following the release of openssh-5.5p1 |