diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-04-28 03:09:52 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2002-04-28 03:09:52 +0000 |
commit | e4fe04cbafae1d4cceef763d904be75db89954e4 (patch) | |
tree | 99c5732dcff2f573f4762bad996ab91be27c6870 /src | |
parent | 577f3cebbf1caf7b07c635721949884672ce2c94 (diff) | |
download | tinyproxy-e4fe04cbafae1d4cceef763d904be75db89954e4.tar.gz tinyproxy-e4fe04cbafae1d4cceef763d904be75db89954e4.zip |
Clear the total array of threads before any of the threads are created.
Diffstat (limited to 'src')
-rw-r--r-- | src/thread.c | 4 |
1 files 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; } |