From: Howard Chu Date: Sun, 28 Nov 1999 04:05:59 +0000 (+0000) Subject: Read a full buffer from wake_sds whenever we wake up from select(). X-Git-Tag: UCDATA_2_4~160 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e63364baacaba4c0c5fd1e6cc0943467222a1ee4;p=openldap Read a full buffer from wake_sds whenever we wake up from select(). --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index b3aa8a1673..9bd2c9a07f 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -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; }