]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 16 May 2022 15:07:33 +0000 (15:07 +0000)
servers/slapd/daemon.c

index 2f78b77c7fb7067a3db4950f1b42910cf4442f7c..18db97aa79b0375a5fa47358178b44488d739686 100644 (file)
@@ -227,11 +227,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)