MCPcopy Create free account
hub / github.com/apache/httpd / startup_children

Function startup_children

server/mpm/worker/worker.c:1385–1398  ·  view source on GitHub ↗

start up a bunch of children */

Source from the content-addressed store, hash-verified

1383
1384/* start up a bunch of children */
1385static void startup_children(int number_to_start)
1386{
1387 int i;
1388
1389 for (i = 0; number_to_start && i < ap_daemons_limit; ++i) {
1390 if (ap_scoreboard_image->parent[i].pid != 0) {
1391 continue;
1392 }
1393 if (make_child(ap_server_conf, i, i % retained->mpm->num_buckets) < 0) {
1394 break;
1395 }
1396 --number_to_start;
1397 }
1398}
1399
1400static void perform_idle_server_maintenance(int child_bucket)
1401{

Callers 2

server_main_loopFunction · 0.70
worker_runFunction · 0.70

Calls 1

make_childFunction · 0.70

Tested by

no test coverage detected