diff options
author | Christopher Faylor <me@cgf.cx> | 2011-10-11 02:01:06 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-10-11 02:01:06 +0400 |
commit | be96a30c4370868ab29294ba09057e45bfb4bc2d (patch) | |
tree | 14456d684b1dc705335d43348a03d4251a877484 /winsup/cygwin/tty.cc | |
parent | 4c34aaba558c4c46dc430b7e403d768da510d977 (diff) |
* syscalls.cc (open): Add temporary kludge to avoid assigning the controlling
tty on open unless the open is for stdin/stdout/stderr.
* tty.cc (tty_list::connect): Set ENXIO when can't find a tty.
Diffstat (limited to 'winsup/cygwin/tty.cc')
-rw-r--r-- | winsup/cygwin/tty.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc index e751d30c2..30879b0e3 100644 --- a/winsup/cygwin/tty.cc +++ b/winsup/cygwin/tty.cc @@ -103,6 +103,7 @@ tty_list::connect (int ttynum) if (!ttys[ttynum].exists ()) { termios_printf ("tty %d was not allocated", ttynum); + set_errno (ENXIO); return -1; } |