diff options
author | Andrew Bartlett <abartlet@samba.org> | 2008-02-04 17:59:16 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2008-02-04 17:59:16 +1100 |
commit | b3c5fbec47739ee2bb26f900d1f564a36dc3ad82 (patch) | |
tree | 6cbde07fd634a515b2f7fece08f36abc13b4be3d /source4/smbd/process_model.h | |
parent | 3d5594e74da375a47cf15514926803352d256ca3 (diff) | |
download | samba-b3c5fbec47739ee2bb26f900d1f564a36dc3ad82.tar.gz |
Remaining changes to implement the prefork process model
To use, run 'smbd -M prefork'
By default, only the smb service is preforked. 4 children are
created, and all listen for new connections. The Linux Kernel 'wake
one' behaviour should ensure that only one is given the oportunity to
accept. We need to look into the ideal number of worker children, as
well as load balancing behaviours.
To change, set:
prefork children : smb = 6
valid service names (smb in this example) match those in 'server services'.
Andrew Bartlett and David Disseldorp
(This used to be commit 35313c0aa3fbfdd943edfb7bafd7645b1a0c54e9)
Diffstat (limited to 'source4/smbd/process_model.h')
-rw-r--r-- | source4/smbd/process_model.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/smbd/process_model.h b/source4/smbd/process_model.h index c2a5c9e9e89..796c8ee17bd 100644 --- a/source4/smbd/process_model.h +++ b/source4/smbd/process_model.h @@ -25,7 +25,7 @@ #define __PROCESS_MODEL_H__ #include "lib/socket/socket.h" -#include "smbd/service_task.h" +#include "smbd/service.h" /* modules can use the following to determine if the interface has changed * please increment the version number after each interface change @@ -56,6 +56,7 @@ struct model_ops { /* function to create a task */ void (*new_task)(struct event_context *, struct loadparm_context *lp_ctx, + const char *service_name, void (*)(struct event_context *, struct loadparm_context *, struct server_id, void *), |