]> arthur.barton.de Git - ngircd.git/commitdiff
io.c: fix select FD_SETSIZE check when using epoll as io backend branch-0-11-x
authorFlorian Westphal <fw@strlen.de>
Thu, 3 Apr 2008 14:16:35 +0000 (14:16 +0000)
committerFlorian Westphal <fw@strlen.de>
Mon, 7 Apr 2008 11:37:49 +0000 (13:37 +0200)
src/ngircd/io.c

index d40b4850ce7d2794b8daaf37df261b49e8fc55bc..247da72151a03435c17952070231b30c2911075d 100644 (file)
@@ -12,7 +12,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: io.c,v 1.28 2008/01/02 10:29:51 fw Exp $";
+static char UNUSED id[] = "$Id: io.c,v 1.28.2.1 2008/04/03 14:16:35 fw Exp $";
 
 #include <assert.h>
 #include <stdlib.h>
@@ -308,7 +308,7 @@ io_event_create(int fd, short what, void (*cbfunc) (int, short))
 
        assert(fd >= 0);
 #if defined(IO_USE_SELECT) && defined(FD_SETSIZE)
-       if (fd >= FD_SETSIZE) {
+       if (io_masterfd < 0 && fd >= FD_SETSIZE) {
                Log(LOG_ERR,
                    "fd %d exceeds FD_SETSIZE (%u) (select can't handle more file descriptors)",
                    fd, FD_SETSIZE);