mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 18:49:34 -05:00
ITS#9847 slapd: fix kqueue for FreeBSD/MacOSX/OpenBSD
This commit is contained in:
parent
d20577456f
commit
ced6652efb
1 changed files with 2 additions and 3 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue