From e4fe04cbafae1d4cceef763d904be75db89954e4 Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Sun, 28 Apr 2002 03:09:52 +0000 Subject: Clear the total array of threads before any of the threads are created. --- src/thread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/thread.c b/src/thread.c index 7c61689..d19f95c 100644 --- a/src/thread.c +++ b/src/thread.c @@ -1,4 +1,4 @@ -/* $Id: thread.c,v 1.27 2002-04-28 02:37:01 rjkaes Exp $ +/* $Id: thread.c,v 1.28 2002-04-28 03:09:52 rjkaes Exp $ * * Handles the creation/destruction of the various threads required for * processing incoming connections. @@ -270,7 +270,7 @@ thread_pool_create(void) thread_config.startservers = thread_config.maxclients; } - for (i = thread_config.startservers; i < thread_config.maxclients; i++) { + for (i = 0; i < thread_config.maxclients; i++) { thread_ptr[i].status = T_EMPTY; thread_ptr[i].connects = 0; } -- cgit v1.2.3