diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-08-16 10:36:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:38:39 -0500 |
commit | 0be131725ff90e48d4f9696b80b35b740575fb2c (patch) | |
tree | 4720d524c85b85a12277c6a3e34900f9f894b00d /source3/lib | |
parent | 5615d534595013eb8749037d16efd726e728c330 (diff) | |
download | samba-0be131725ff90e48d4f9696b80b35b740575fb2c.tar.gz samba-0be131725ff90e48d4f9696b80b35b740575fb2c.tar.bz2 samba-0be131725ff90e48d4f9696b80b35b740575fb2c.zip |
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
(This used to be commit eb45de167d24d07a218307ec5a48c0029ec097c6)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/dummysmbd.c | 5 | ||||
-rw-r--r-- | source3/lib/util.c | 3 |
2 files changed, 0 insertions, 8 deletions
diff --git a/source3/lib/dummysmbd.c b/source3/lib/dummysmbd.c index 087de2fe25..5bb71e120e 100644 --- a/source3/lib/dummysmbd.c +++ b/source3/lib/dummysmbd.c @@ -24,11 +24,6 @@ #include "includes.h" -void decrement_smbd_process_count( void ) -{ - return; -} - int find_service(fstring service) { return -1; diff --git a/source3/lib/util.c b/source3/lib/util.c index f985c57ed9..ef954015d6 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1594,9 +1594,6 @@ void smb_panic(const char *const why) (unsigned long long)sys_getpid(), why)); log_stack_trace(); - /* only smbd needs to decrement the smbd counter in connections.tdb */ - decrement_smbd_process_count(); - cmd = lp_panic_action(); if (cmd && *cmd) { DEBUG(0, ("smb_panic(): calling panic action [%s]\n", cmd)); |