mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-18 19:50:54 +00:00
[MAJOR] kqueue was not initialized during startup
This commit is contained in:
parent
a8cff1d6a7
commit
e1a7a2f0d8
8
src/fd.c
8
src/fd.c
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user