2014-06-05 20:43:01 +00:00
|
|
|
#include "io_internal.h"
|
|
|
|
|
|
|
|
void io_eagain_read(int64 d) {
|
|
|
|
io_entry* e=iarray_get(&io_fds,d);
|
|
|
|
if (e) {
|
|
|
|
e->canread=0;
|
2014-08-28 19:03:57 +00:00
|
|
|
#if defined(HAVE_SIGIO)
|
2016-10-04 21:31:14 +00:00
|
|
|
if (d==alt_curread) {
|
|
|
|
#if 0
|
2014-06-05 20:43:01 +00:00
|
|
|
debug_printf(("io_eagain: dequeueing %lld from alt read queue (next is %ld)\n",d,e->next_read));
|
|
|
|
alt_firstread=e->next_read;
|
2014-10-19 01:52:36 +00:00
|
|
|
e->next_read=-1;
|
2016-10-04 21:31:14 +00:00
|
|
|
#else
|
|
|
|
alt_curread=-1;
|
|
|
|
#endif
|
2014-06-05 20:43:01 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|