diff options
author | Christopher Faylor <me@cgf.cx> | 2006-06-05 00:32:58 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2006-06-05 00:32:58 +0400 |
commit | c0ac34fda03d4e1691035f13615fdcaa10af94e5 (patch) | |
tree | c7bef32a7af0beebbb7b6643943d7c7ac8001178 /winsup/cygwin/select.cc | |
parent | e73b03adcca4543c0ecde8603d9f51dbd5b1f5de (diff) |
* ioctl.cc (ioctl): Accommodate change in reported pty master device number.
* select.cc (peek_pipe): Ditto.
Diffstat (limited to 'winsup/cygwin/select.cc')
-rw-r--r-- | winsup/cygwin/select.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index 84424bcc2..5383aa9d6 100644 --- a/winsup/cygwin/select.cc +++ b/winsup/cygwin/select.cc @@ -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; |