From 5b8d286d40305712fba14fb9b39053a78e44bee1 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 1 Sep 1999 06:37:46 +0000 Subject: [PATCH] Fix idle timeout code. --- servers/slapd/daemon.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 3b78fd24b9..62e199a301 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -436,7 +436,7 @@ slapd_daemon_task( ) { int l; - + time_t last_idle_check = slap_get_time(); time( &starttime ); for ( l = 0; slap_listeners[l] != NULL; l++ ) { @@ -471,8 +471,7 @@ slapd_daemon_task( int ebadf = 0; #define SLAPD_IDLE_CHECK_LIMIT 4 - time_t last_idle_check = slap_get_time(); - time_t now; + time_t now = slap_get_time(); fd_set readfds; -- 2.39.5