mirror of
https://github.com/samba-team/samba.git
synced 2025-12-11 08:23:49 +03:00
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 commit is contained in:
committed by
Gerald (Jerry) Carter
parent
2a66abca02
commit
eb45de167d
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user