diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 6b01b5c24..c2486bbce 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2011-06-13 Christopher Faylor + + * fhandler_tty_slave.cc (fhandler_tty_slave::fhandler_tty_slave): + Revert previous change since unit 0 is perfectly valid. + 2011-06-12 Christopher Faylor Rename FH_BAD to FH_NADA throughout. diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 821d6e94e..0800cd936 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -472,7 +472,7 @@ process_ioctl (void *) fhandler_tty_slave::fhandler_tty_slave (int unit) : fhandler_tty_common (), inuse (NULL) { - if (unit > 0) + if (unit >= 0) dev ().parse (DEV_TTYS_MAJOR, unit); }