]> git.sur5r.net Git - openldap/commitdiff
Read a full buffer from wake_sds whenever we wake up from select().
authorHoward Chu <hyc@openldap.org>
Sun, 28 Nov 1999 04:05:59 +0000 (04:05 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 28 Nov 1999 04:05:59 +0000 (04:05 +0000)
servers/slapd/daemon.c

index b3aa8a16731809cde56557f563c20db3ba2b0a43..9bd2c9a07f3b53c368ed877dd81b545da9c69d31 100644 (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;
                }