#include <stdlib.h>
#include <string.h>
+#include <time.h>
+#include <unistd.h>
#include <errno.h>
#include <sys/select.h>
struct blocker *bl;
int rv;
+ if(fd >= FD_SETSIZE) {
+ flog(LOG_ERR, "tried to use more file descriptors than select() can handle: fd %i", fd);
+ errno = EMFILE;
+ return(-1);
+ }
omalloc(bl);
bl->fd = fd;
bl->ev = ev;