mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
123042c2e3
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
b5be45c453
.
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
54 lines
2.0 KiB
Python
54 lines
2.0 KiB
Python
#!/usr/bin/env python
|
|
|
|
bld.SAMBA_LIBRARY('service',
|
|
source='service.c service_stream.c service_named_pipe.c service_task.c',
|
|
autoproto='service_proto.h',
|
|
deps='tevent MESSAGING samba_socket RPC_NDR_IRPC NDR_NAMED_PIPE_AUTH npa_tstream gssapi samba-credentials LIBTSOCKET LIBSAMBA_TSOCKET process_model',
|
|
private_library=True,
|
|
enabled=bld.AD_DC_BUILD_IS_ENABLED()
|
|
)
|
|
|
|
|
|
bld.SAMBA_LIBRARY('process_model',
|
|
source='process_model.c',
|
|
autoproto='process_model_proto.h',
|
|
deps='samba-util samba-hostconfig samba-modules',
|
|
private_library=True,
|
|
enabled=bld.AD_DC_BUILD_IS_ENABLED()
|
|
)
|
|
|
|
bld.SAMBA_BINARY('samba',
|
|
source='server.c',
|
|
subsystem_name='service',
|
|
deps='''events process_model service samba-hostconfig samba-util POPT_SAMBA
|
|
popt gensec registry ntvfs share cluster COMMON_SCHANNEL SECRETS''',
|
|
pyembed=True,
|
|
install_path='${SBINDIR}',
|
|
enabled=bld.AD_DC_BUILD_IS_ENABLED()
|
|
)
|
|
|
|
bld.SAMBA_MODULE('process_model_single',
|
|
source='process_single.c',
|
|
subsystem='process_model',
|
|
init_function='process_model_single_init',
|
|
deps='cluster process_model samba-sockets',
|
|
internal_module=True
|
|
)
|
|
|
|
|
|
bld.SAMBA_MODULE('process_model_standard',
|
|
source='process_standard.c',
|
|
subsystem='process_model',
|
|
init_function='process_model_standard_init',
|
|
deps='MESSAGING events ldbsamba process_model samba-sockets cluster messages_dgm',
|
|
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
|
|
)
|