From 123042c2e3358dc6671ce0969aee7b0f0695590e Mon Sep 17 00:00:00 2001 From: Gary Lockyer Date: Thu, 7 Sep 2017 14:30:15 +1200 Subject: 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 Reviewed-by: Andrew Bartlett Reviewed-by: Garming Sam --- source4/smbd/wscript_build | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source4/smbd/wscript_build') diff --git a/source4/smbd/wscript_build b/source4/smbd/wscript_build index c28bc1df38a..ef0aaf773c1 100644 --- a/source4/smbd/wscript_build +++ b/source4/smbd/wscript_build @@ -44,3 +44,10 @@ bld.SAMBA_MODULE('process_model_standard', internal_module=False ) +bld.SAMBA_MODULE('process_model_prefork', + source='process_prefork.c', + subsystem='process_model', + init_function='process_model_prefork_init', + deps='MESSAGING events ldbsamba cluster samba-sockets process_model messages_dgm', + internal_module=False + ) -- cgit v1.2.1