On 2022-05-12, Quanah Gibson-Mount quanah@fast-mail.org wrote:
--On Thursday, May 12, 2022 7:57 PM +0100 Stuart Henderson stu@spacehopper.org wrote:
I'm working on updating the OpenBSD port of OpenLDAP to 2.6.2 (it's currently stuck at 2.4.59).
Any suggestions would be welcome. Thanks!
Please file a bug at https://bugs.openldap.org/ with the detailed information you gathered.
Following up for the list archives: if slapd forks (i.e. to daemonize when not running in the foreground), it closes the file descriptor associated with the kqueue socket. However the OS does not inherit the kqueue fd across a fork anyway, so it was actually closing an unrelated fd, in this case the fd for lock.mdb.
Thanks for your help Quanah and Howard which led me to track it down.