ioloop-select.c revision 099bd1273cb6c664b5e57826c5a82640a483882d
/* Copyright (c) 2002-2003 Timo Sirainen */
#include "lib.h"
#include "ioloop-internal.h"
#ifdef IOLOOP_SELECT
#ifdef HAVE_SYS_SELECT_H
#endif
#include <unistd.h>
struct ioloop_handler_data {
};
{
}
{
}
{
if (fd >= FD_SETSIZE)
}
{
}
{
unsigned int t_id;
int ret;
/* get the time left for next timeout task */
sizeof(fd_set));
i_warning("select() : %m");
/* execute timeout handlers */
/* no I/O events */
return;
}
/* we were destroyed, and io->fd points to -1 now. */
continue;
}
ret--;
i_panic("Leaked a t_pop() call!");
continue;
}
}
}
}
#endif