r17569: Make 'max smbd processes' more robust. Counting on the child to decrement a
commiteb45de167d24d07a218307ec5a48c0029ec097c6
authorVolker Lendecke <vlendec@samba.org>
Wed, 16 Aug 2006 10:36:19 +0000 (16 10:36 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:38:39 +0000 (10 11:38 -0500)
tree0987bc793c84d05b216d1f1365027b03609f6bdb
parent2a66abca02b5e95b66ab336f0d0e3977676d4540
r17569: Make 'max smbd processes' more robust. Counting on the child to decrement a
tdb entry is not the most reliable way to count children correctly.

This increments the number of children after a fork and decrements it upon
SIGCLD. I'm keeping a list of children just for consistency checks, so that we
at least get a debug level 0 message if something goes wrong.

Volker
source/lib/dummysmbd.c
source/lib/util.c
source/smbd/process.c
source/smbd/server.c