bugzilla-daemon at mindrot.org
2004-Apr-01 09:20 UTC
[Bug 830] Check immediate EOF coming on stdin
http://bugzilla.mindrot.org/show_bug.cgi?id=830
Summary: Check immediate EOF coming on stdin
Product: Portable OpenSSH
Version: 3.8p1
Platform: Other
OS/Version: other
Status: NEW
Severity: minor
Priority: P2
Component: ssh
AssignedTo: openssh-bugs at mindrot.org
ReportedBy: ignasi.roca at fujitsu-siemens.com
Hi,
ssh using protocol 1 checks whether there is an EOF comming on stdin to avoid
problems on some platforms that select() doesn't wake up when redirected
from /dev/null. In my case, a POSIX system, this handle is useful and avoids
also select() complaining agains using /dev/null. So checking EOF comming on
stdin prevents two possible problems: dont't wake up of select() and
select()
complaining agains using /dev/null.
EOF comes immediate from stdin when using -n option or when stdin is redirected
to /dev/null (</dev/null).
ssh using protocol 2 doesn't handle EOF comming on stdin then the avobe two
problems are present.
Cheers,
Ignasi Roca
Fujitsu-Siemens Computers.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Apr-01 09:39 UTC
[Bug 830] Check immediate EOF coming on stdin
http://bugzilla.mindrot.org/show_bug.cgi?id=830 ------- Additional Comments From ignasi.roca at fujitsu-siemens.com 2004-04-01 19:39 ------- Created an attachment (id=589) --> (http://bugzilla.mindrot.org/attachment.cgi?id=589&action=view) Add check EOF comming on stdin at session_setup time for protocol 2 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Apr-01 09:55 UTC
[Bug 830] Check immediate EOF coming on stdin
http://bugzilla.mindrot.org/show_bug.cgi?id=830
ignasi.roca at fujitsu-siemens.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #589 is|0 |1
obsolete| |
------- Additional Comments From ignasi.roca at fujitsu-siemens.com 2004-04-01
19:55 -------
(From update of attachment 589)
It is not correct. It fails compiling channels.c
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
bugzilla-daemon at mindrot.org
2004-Apr-01 09:58 UTC
[Bug 830] Check immediate EOF coming on stdin
http://bugzilla.mindrot.org/show_bug.cgi?id=830 ------- Additional Comments From ignasi.roca at fujitsu-siemens.com 2004-04-01 19:58 ------- Created an attachment (id=590) --> (http://bugzilla.mindrot.org/attachment.cgi?id=590&action=view) Add check EOF comming on stdin at session_setup time for protocol 2 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee.