ioloop-select.c revision 90da11b31d498cd653ec7232b334b6057198ab46
/* 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 {
int highest_fd;
};
{
int max_highest_fd;
break;
}
}
}
{
}
{
}
{
if (fd >= FD_SETSIZE)
}
{
/* check if we removed the highest fd */
}
{
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;
}
ret--;
i_panic("Leaked a t_pop() call!");
}
}
}
#endif