ITS#3760 don't select on uninit'd writefds

This commit is contained in:
Howard Chu 2005-06-09 08:19:05 +00:00
parent caefdf007c
commit 58e8817fc1

View File

@ -1807,7 +1807,8 @@ slapd_daemon_task(
int r, w;
r = SLAP_EVENT_IS_READ( i );
w = SLAP_EVENT_IS_WRITE( i );
/* writefds was not initialized if nwriters was zero */
w = nwriters ? SLAP_EVENT_IS_WRITE( i ) : 0;
if ( r || w ) {
Debug( LDAP_DEBUG_CONNS, " %d%s%s", i,
r ? "r" : "", w ? "w" : "" );