s3-prefrok: Handle only valid children
authorSimo Sorce <idra@samba.org>
Tue, 16 Aug 2011 15:07:27 +0000 (11:07 -0400)
committerSimo Sorce <idra@samba.org>
Sun, 21 Aug 2011 13:05:05 +0000 (09:05 -0400)
commitdf6f320aa47026bbf589a3276a0708ea3f93504b
tree37d5b377387992e62e401568e9b273df72f309be
parente3736f826b434bcdff5493fc533c11eba9bedc61
s3-prefrok: Handle only valid children

Children that are about to exit shouldn't be counted as a source of
connections, and also makes no sense to chenge their allowances if they are
about to exit.
Also children with negative num_clients are faulty, exclude them as well.

Signed-off-by: Andreas Schneider <asn@samba.org>
Signed-off-by: Simo Sorce <idra@samba.org>
source3/lib/server_prefork.c