from the specific tty to those for /dev/tty.
+2011-10-11 Christopher Faylor <me.cygwin2011@cgf.cx>
+
+ * dtable.cc (fh_alloc): Don't parse /dev/tty if ctty is < 0. Reset
+ major/minor from the specific tty to those for /dev/tty.
+
2011-10-10 Christopher Faylor <me.cygwin2011@cgf.cx>
* syscalls.cc (open): Add temporary kludge to avoid assigning the
break;
case FH_TTY:
{
- if (iscons_dev (myself->ctty))
- fh = cnew (fhandler_console, dev);
- else
- fh = cnew (fhandler_pty_slave, myself->ctty);
+ if (myself->ctty > 0)
+ {
+ if (iscons_dev (myself->ctty))
+ fh = cnew (fhandler_console, dev);
+ else
+ fh = cnew (fhandler_pty_slave, myself->ctty);
+ fh->dev () = FH_TTY;
+ }
break;
}
case FH_KMSG: