https://bugs.openldap.org/show_bug.cgi?id=9847
--- Comment #13 from Xin Li delphij@freebsd.org --- (In reply to Quanah Gibson-Mount from comment #11)
(In reply to stu from comment #4)
Looks like this is a problem on FreeBSD too: https://cgit.freebsd.org/ports/tree/net/openldap25-server/files/patch- servers_slapd_daemon.c
I'm somewhat puzzled as to why Xin Li never reported this to the OpenLDAP project. I had a 2 year long thread with them about kqueue support in OpenLDAP, and while one issue was reported and fixed with the code, there was no follow up on it since January of 2019 when I last asked Xin Li to confirm the code in OpenLDAP master worked correctly.
Ahhh, that was my bad. I have maintained a side branch locally with some modifications at some point, but never submitted it back (I must've thought I did upstreamed them, then forgot about these and expected the local patch can be removed one day, sorry... will be more careful in the future).