1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-23 11:33:16 +03:00
Commit Graph

3 Commits

Author SHA1 Message Date
Stefan Metzmacher
36012c386b prefork: also reload stuff in the client processes
metze
2008-02-06 14:44:20 +01:00
Andrew Bartlett
07590d893e Clarify nomaclature of socket names in process_single and process_prefork
Fix talloc_steal in both cases to steal connected socket (from accept)
onto it's private structure, rather than stealing the bound socket.

Remove termination code from the prefork modal, we want the process to
still stay around, to serve future clients.

Andrew Bartlett and David Disseldorp
2008-02-05 14:51:01 +11:00
Andrew Bartlett
35313c0aa3 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
2008-02-04 17:59:16 +11:00