[MAJOR] kqueue was not initialized during startup

This commit is contained in:
Willy Tarreau 2007-04-09 16:11:49 +02:00
parent a8cff1d6a7
commit e1a7a2f0d8

View File

@ -45,6 +45,9 @@ extern int poll_register(struct poller *p);
#if defined(ENABLE_EPOLL)
extern int epoll_register(struct poller *p);
#endif
#if defined(ENABLE_KQUEUE)
extern int kqueue_register(struct poller *p);
#endif
/* Deletes an FD from the fdsets, and recomputes the maxfd limit.
@ -75,6 +78,11 @@ void register_pollers()
epoll_register(&pollers[nbpollers]);
nbpollers++;
#endif
#if defined(ENABLE_KQUEUE)
kqueue_register(&pollers[nbpollers]);
nbpollers++;
#endif
}
/* disable the specified poller */