* 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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user