* ioctl.cc (ioctl): Accommodate change in reported pty master device number.

* select.cc (peek_pipe): Ditto.
This commit is contained in:
Christopher Faylor
2006-06-04 20:32:58 +00:00
parent e73b03adcc
commit c0ac34fda0
3 changed files with 13 additions and 5 deletions

View File

@ -457,10 +457,9 @@ peek_pipe (select_record *s, bool from_select)
goto out;
}
switch (fh->get_device ())
switch (fh->get_major ())
{
case FH_PTYM:
case FH_TTYM:
case DEV_TTYM_MAJOR:
if (((fhandler_pty_master *) fh)->need_nl)
{
gotone = s->read_ready = true;