summaryrefslogtreecommitdiffstats
path: root/source3/lib/server_prefork_util.c
Commit message (Collapse)AuthorAgeFilesLines
* s3-prefork: Fix code to retire childrenSimo Sorce2011-08-211-1/+1
| | | | | | | | | | | | | | | We have to be more careful when retiring children. We cannot stop accepting connections as soon as the server tells us to quit because if max_children is reached and we still have clients connected, the server will not be able to spawn new children until one exits. And children will not exit until all the clients closed the connections. So we keep operating past our recall until we have 0 connections. Also do not try to recall children that still have >= 1 clients connected, they couldn't anyway. Also use messaging to warn children and not SIGHUP. Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-prefork: Add parent->client messagingSimo Sorce2011-08-211-0/+10
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-prefork: Improve heuristicsSimo Sorce2011-08-211-22/+41
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-prefork: add a few more utility functionsSimo Sorce2011-08-211-0/+23
| | | | | | | | | Add a few util functions children side so that daemons do not have to care about properly setting num_clients and state. Let a common helper do it so that they are all consistent. Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-prefork: Add common utilities for daemonsSimo Sorce2011-08-211-0/+117
Daemons using the prefork infrastructure may want to use these utils to configure and manage a pool of children. Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>