]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9847 slapd: fix kqueue for FreeBSD/MacOSX/OpenBSD
authorHoward Chu <hyc@openldap.org>
Sat, 14 May 2022 16:16:02 +0000 (17:16 +0100)
committerHoward Chu <hyc@openldap.org>
Sat, 14 May 2022 16:16:02 +0000 (17:16 +0100)
servers/slapd/daemon.c

index 194d4cfb59819cb10d16c1daf25915ad6e39f8ca..d508be22089cdd9fd7debfff729983777c594740 100644 (file)
@@ -231,11 +231,10 @@ static slap_daemon_st *slap_daemon;
     slap_daemon[t].sd_kq = kqueue(); \
 } while (0)
 
-/* a kqueue fd obtained before a fork can't be used in child process.
- * close it and reacquire it.
+/* a kqueue fd obtained before a fork isn't inherited by child process.
+ * reacquire it.
  */
 # define SLAP_SOCK_INIT2() do { \
-       close(slap_daemon[0].sd_kq); \
        slap_daemon[0].sd_kq = kqueue(); \
 } while (0)