summaryrefslogtreecommitdiff
path: root/source4/smbd/wscript_build
diff options
context:
space:
mode:
authorGary Lockyer <gary@catalyst.net.nz>2017-09-07 14:30:15 +1200
committerAndrew Bartlett <abartlet@samba.org>2017-10-19 05:33:10 +0200
commit123042c2e3358dc6671ce0969aee7b0f0695590e (patch)
treefab6514ef0468fbb3de4fc0d6a6c89059bcc7354 /source4/smbd/wscript_build
parent778e9a810ef48262efe250bebce3e88546acc694 (diff)
downloadsamba-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 'source4/smbd/wscript_build')
-rw-r--r--source4/smbd/wscript_build7
1 files changed, 7 insertions, 0 deletions
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
+ )