* 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.
This commit is contained in:
Christopher Faylor
2011-10-10 22:01:06 +00:00
parent 4c34aaba55
commit be96a30c43
3 changed files with 13 additions and 0 deletions

View File

@@ -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;
}