Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-06-14 03:49:00 +0400
committerChristopher Faylor <me@cgf.cx>2011-06-14 03:49:00 +0400
commit0fdbb2d0cdf86dddcd7c915ab3ef1172c704ecc2 (patch)
treed6cb2fa45f9b433c7d5918ef135748e841d4940b /winsup/cygwin/fhandler_tty.cc
parente75cc8b1d0af615ce262e2d865fec80b58e06950 (diff)
* 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 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);
}