From e63364baacaba4c0c5fd1e6cc0943467222a1ee4 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 28 Nov 1999 04:05:59 +0000 Subject: [PATCH] Read a full buffer from wake_sds whenever we wake up from select(). --- servers/slapd/daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5