Changed the fields in the child_config_s structure to use regular
signed integers since the servers_waiting variable is signed and therefore, all the tests must use signed arithmetic.
This commit is contained in:
parent
cd9c768c59
commit
cc3a893f5a
@ -1,4 +1,4 @@
|
|||||||
/* $Id: child.c,v 1.11.2.1 2003-08-06 20:23:06 rjkaes Exp $
|
/* $Id: child.c,v 1.11.2.2 2004-06-14 20:08:12 rjkaes Exp $
|
||||||
*
|
*
|
||||||
* Handles the creation/destruction of the various children required for
|
* Handles the creation/destruction of the various children required for
|
||||||
* processing incoming connections.
|
* processing incoming connections.
|
||||||
@ -46,8 +46,8 @@ struct child_s {
|
|||||||
static struct child_s *child_ptr;
|
static struct child_s *child_ptr;
|
||||||
|
|
||||||
static struct child_config_s {
|
static struct child_config_s {
|
||||||
unsigned int maxclients, maxrequestsperchild;
|
int maxclients, maxrequestsperchild;
|
||||||
unsigned int maxspareservers, minspareservers, startservers;
|
int maxspareservers, minspareservers, startservers;
|
||||||
} child_config;
|
} child_config;
|
||||||
|
|
||||||
static int* servers_waiting; /* servers waiting for a connection */
|
static int* servers_waiting; /* servers waiting for a connection */
|
||||||
@ -127,7 +127,7 @@ _child_lock_release(void)
|
|||||||
* Set the configuration values for the various child related settings.
|
* Set the configuration values for the various child related settings.
|
||||||
*/
|
*/
|
||||||
short int
|
short int
|
||||||
child_configure(child_config_t type, unsigned int val)
|
child_configure(child_config_t type, int val)
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case CHILD_MAXCLIENTS:
|
case CHILD_MAXCLIENTS:
|
||||||
|
Loading…
Reference in New Issue
Block a user