Read a full buffer from wake_sds whenever we wake up from select().

This commit is contained in:
Howard Chu 1999-11-28 04:05:59 +00:00
parent aee2482547
commit e63364baac

View file

@ -588,8 +588,8 @@ slapd_daemon_task(
}
if( FD_ISSET( wake_sds[0], &readfds ) ) {
char c;
tcp_read( wake_sds[0], &c, 1 );
char c[BUFSIZ];
tcp_read( wake_sds[0], c, sizeof(c) );
continue;
}