blind fix for ITS#6621

This commit is contained in:
Pierangelo Masarati 2010-08-13 00:55:57 +00:00
parent f6a693a4ed
commit abc5b002a7

View File

@ -521,7 +521,7 @@ static slap_daemon_st slap_daemon[MAX_DAEMON_THREADS];
# define SLAP_EVENT_WAIT(t, tvp, nsp) do { \
int i; \
*(nsp) = select( SLAP_EVENT_MAX, &readfds, \
*(nsp) = select( SLAP_EVENT_MAX(t), &readfds, \
nwriters > 0 ? &writefds : NULL, NULL, (tvp) ); \
for ( i=0; i<readfds.fd_count; i++) { \
int fd = slapd_sock2fd(readfds.fd_array[i]); \
@ -666,7 +666,7 @@ static slap_daemon_st slap_daemon[MAX_DAEMON_THREADS];
# define SLAP_EVENT_CLR_WRITE(fd) FD_CLR((fd), &writefds)
# define SLAP_EVENT_WAIT(t, tvp, nsp) do { \
*(nsp) = select( SLAP_EVENT_MAX, &readfds, \
*(nsp) = select( SLAP_EVENT_MAX(t), &readfds, \
nwriters > 0 ? &writefds : NULL, NULL, (tvp) ); \
} while (0)
# endif /* !HAVE_WINSOCK */