809 |
{ |
{ |
810 |
uint32 select_timeout = 0; // Timeout value to be used for select() (in millisecons). |
uint32 select_timeout = 0; // Timeout value to be used for select() (in millisecons). |
811 |
struct async_iorequest *iorq; |
struct async_iorequest *iorq; |
812 |
|
char c; |
813 |
|
|
814 |
iorq = g_iorequest; |
iorq = g_iorequest; |
815 |
while (iorq != NULL) |
while (iorq != NULL) |
816 |
{ |
{ |
817 |
if (iorq->fd != 0) |
/* We need to test that the fd is still valid */ |
818 |
|
if ((iorq->fd != 0) && (read(iorq->fd, &c, 0) == 0)) |
819 |
{ |
{ |
820 |
switch (iorq->major) |
switch (iorq->major) |
821 |
{ |
{ |