+2001-11-03 Christopher Faylor <cgf@redhat.com>
+
+ * select.cc (verify_console): New function.
+ (verify_windows): Ditto.
+ (fhandler_console::select_read): Really do need to verify that there is
+ something to read.
+ (fhandler_console::select_windows): Ditto.
+
2001-11-03 Christopher Faylor <cgf@redhat.com>
* fhandler.h (fhandler_base::ready_for_read): Remove unused argument.
return me->write_ready;
}
+
+static int
+verify_console (select_record *me, fd_set *rfds, fd_set *wfds,
+ fd_set *efds)
+{
+ return peek_console (me, true);
+}
+
select_record *
fhandler_console::select_read (select_record *s)
{
s = new select_record;
s->startup = no_startup;
- s->verify = verify_ok;
+ s->verify = verify_console;
set_cursor_maybe ();
}
return me->write_ready;
}
+static int
+verify_windows (select_record *me, fd_set *rfds, fd_set *wfds,
+ fd_set *efds)
+{
+ return peek_windows (me, true);
+}
+
select_record *
fhandler_windows::select_read (select_record *s)
{
{
s = new select_record;
s->startup = no_startup;
- s->verify = verify_ok;
}
+ s->verify = verify_windows;
s->peek = peek_windows;
s->read_selected = true;
s->read_ready = false;