aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler_tty.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-06-13 23:49:00 +0000
committerChristopher Faylor <me@cgf.cx>2011-06-13 23:49:00 +0000
commit0fdbb2d0cdf86dddcd7c915ab3ef1172c704ecc2 (patch)
treed6cb2fa45f9b433c7d5918ef135748e841d4940b /winsup/cygwin/fhandler_tty.cc
parente75cc8b1d0af615ce262e2d865fec80b58e06950 (diff)
downloadnewlib-0fdbb2d0cdf86dddcd7c915ab3ef1172c704ecc2.zip
newlib-0fdbb2d0cdf86dddcd7c915ab3ef1172c704ecc2.tar.gz
newlib-0fdbb2d0cdf86dddcd7c915ab3ef1172c704ecc2.tar.bz2
* fhandler_tty_slave.cc (fhandler_tty_slave::fhandler_tty_slave): Revert
previous change since unit 0 is perfectly valid.
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r--winsup/cygwin/fhandler_tty.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index 821d6e9..0800cd9 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);
}