From: Quanah Gibson-Mount Date: Tue, 19 Sep 2017 22:20:56 +0000 (-0700) Subject: Fix calls to SLAP_DEVPOLL_SOCK_LX for multi-listener support. Support X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=09bec057e54ac2f3f1d1dd6a4b68cd3d4eb47f97;p=openldap Fix calls to SLAP_DEVPOLL_SOCK_LX for multi-listener support. Support for /dev/poll is neither enabled nor tested, so other issues may exist. --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 4c7ed845a1..6542a4c5e1 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -440,8 +440,8 @@ static slap_daemon_st slap_daemon[SLAPD_MAX_DAEMON_THREADS]; # define SLAP_EVENT_IS_READ(i) SLAP_DEVPOLL_EVENT_CHK((i), POLLIN) # define SLAP_EVENT_IS_WRITE(i) SLAP_DEVPOLL_EVENT_CHK((i), POLLOUT) -# define SLAP_EVENT_IS_LISTENER(t,i) SLAP_DEVPOLL_EV_LISTENER(SLAP_DEVPOLL_SOCK_LX(SLAP_EVENT_FD(t,(i)))) -# define SLAP_EVENT_LISTENER(t,i) SLAP_DEVPOLL_SOCK_LX(SLAP_EVENT_FD(t,(i))) +# define SLAP_EVENT_IS_LISTENER(t,i) SLAP_DEVPOLL_EV_LISTENER(SLAP_DEVPOLL_SOCK_LX(t, SLAP_EVENT_FD(t,(i)))) +# define SLAP_EVENT_LISTENER(t,i) SLAP_DEVPOLL_SOCK_LX(t, SLAP_EVENT_FD(t,(i))) # define SLAP_SOCK_INIT(t) do { \ slap_daemon[t].sd_pollfd = ch_calloc( 1, \