Home
last modified time | relevance | path

Searched refs:last_idle_child (Results 1 – 1 of 1) sorted by relevance

/PHP-8.1/sapi/fpm/fpm/
H A Dfpm_process_ctl.c333 struct fpm_child_s *last_idle_child = NULL; in fpm_pctl_perform_idle_server_maintenance() local
363 if (last_idle_child == NULL) { in fpm_pctl_perform_idle_server_maintenance()
364 last_idle_child = child; in fpm_pctl_perform_idle_server_maintenance()
366 if (timercmp(&child->started, &last_idle_child->started, <)) { in fpm_pctl_perform_idle_server_maintenance()
367 last_idle_child = child; in fpm_pctl_perform_idle_server_maintenance()
384 if (!last_idle_child) continue; in fpm_pctl_perform_idle_server_maintenance()
386 fpm_request_last_activity(last_idle_child, &last); in fpm_pctl_perform_idle_server_maintenance()
389 fpm_pctl_kill_idle_child(last_idle_child); in fpm_pctl_perform_idle_server_maintenance()
400 if (idle > wp->config->pm_max_spare_servers && last_idle_child) { in fpm_pctl_perform_idle_server_maintenance()
401 fpm_pctl_kill_idle_child(last_idle_child); in fpm_pctl_perform_idle_server_maintenance()

Completed in 5 milliseconds