[Bug 830] Check immediate EOF coming on stdin

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Thu Apr 1 19:20:18 EST 2004


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.




More information about the openssh-bugs mailing list