CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2013/10/11 06:44:13

Modified files:
        sys/kern       : tty.c tty_pty.c 

Log message:
poll(2) on a closed tty should return POLLIN|POLLHUP in revents
when events is set to POLLIN and POLLHUP when events is set to
POLLOUT.  In the pty case we need to be careful to only treat the
pty as closed if carrier is on.  This fixes a hang on close problem
seen with ssh and xterm.

Reply via email to