mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
Fix WAKE_LISTENER
This commit is contained in:
parent
7f5ea4c098
commit
9b2ee679e8
1 changed files with 8 additions and 0 deletions
|
|
@ -82,11 +82,19 @@ static ber_socket_t wake_sds[2];
|
|||
static int emfile;
|
||||
|
||||
static volatile int waking;
|
||||
#ifdef NO_THREADS
|
||||
#define WAKE_LISTENER(w) do { \
|
||||
if ((w) && ++waking < 5) { \
|
||||
tcp_write( wake_sds[1], "0", 1 ); \
|
||||
} \
|
||||
} while(0)
|
||||
#else
|
||||
#define WAKE_LISTENER(w) do { \
|
||||
if (w) { \
|
||||
tcp_write( wake_sds[1], "0", 1 ); \
|
||||
} \
|
||||
} while(0)
|
||||
#endif
|
||||
|
||||
volatile sig_atomic_t slapd_shutdown = 0;
|
||||
volatile sig_atomic_t slapd_gentle_shutdown = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue