diff options
author | Gary Lockyer <gary@catalyst.net.nz> | 2017-09-07 14:30:15 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-10-19 05:33:10 +0200 |
commit | 123042c2e3358dc6671ce0969aee7b0f0695590e (patch) | |
tree | fab6514ef0468fbb3de4fc0d6a6c89059bcc7354 /source3/param | |
parent | 778e9a810ef48262efe250bebce3e88546acc694 (diff) | |
download | samba-123042c2e3358dc6671ce0969aee7b0f0695590e.tar.gz |
source4/smbd: add a prefork process model.
Add a pre fork process model to bound the number processes forked by
samba. Currently workers are only pre-forked for the ldap server, all
the other services have pre-fork support disabled.
When pre-fork support is disabled a new process is started for each
service, and requests are processed by that process.
This commit partially reverts commit
b5be45c453bd51373bade26c29828b500ba586ec.
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 02c3eb661aa..485d3f75b04 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -943,6 +943,7 @@ static void init_globals(struct loadparm_context *lp_ctx, bool reinit_globals) "49152-65535"); Globals.rpc_low_port = SERVER_TCP_LOW_PORT; Globals.rpc_high_port = SERVER_TCP_HIGH_PORT; + Globals.prefork_children = 1; /* Now put back the settings that were set with lp_set_cmdline() */ apply_lp_set_cmdline(); |