Home
last modified time | relevance | path

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

/PHP-8.1/sapi/fpm/fpm/
H A Dfpm.c24 struct fpm_globals_s fpm_globals = { variable
46 fpm_globals.argc = argc; in fpm_init()
47 fpm_globals.argv = argv; in fpm_init()
49 fpm_globals.config = strdup(config); in fpm_init()
51 fpm_globals.prefix = prefix; in fpm_init()
52 fpm_globals.pid = pid; in fpm_init()
53 fpm_globals.run_as_root = run_as_root; in fpm_init()
54 fpm_globals.force_stderr = force_stderr; in fpm_init()
69 if (fpm_globals.test_successful) { in fpm_init()
119 *max_requests = fpm_globals.max_requests; in fpm_run()
[all …]
H A Dfpm_stdio.c113 if (fpm_globals.error_log_fd > 0 && fpm_globals.error_log_fd != STDERR_FILENO) {
130 if (fpm_globals.error_log_fd == ZLOG_SYSLOG) {
143 if (fpm_globals.error_log_fd == ZLOG_SYSLOG) {
152 if (fpm_globals.error_log_fd > 0) {
153 close(fpm_globals.error_log_fd);
155 fpm_globals.error_log_fd = -1;
376 fpm_globals.error_log_fd = ZLOG_SYSLOG;
378 zlog_set_fd(fpm_globals.error_log_fd);
391 dup2(fd, fpm_globals.error_log_fd);
395 fpm_globals.error_log_fd = fd;
[all …]
H A Dfpm_process_ctl.c183 if (!fpm_globals.running_children) { in fpm_pctl_action_next()
264 if (!fpm_globals.running_children) { in fpm_pctl_child_exited()
274 saved_argc = fpm_globals.argc; in fpm_pctl_init_main()
282 saved_argv[i] = strdup(fpm_globals.argv[i]); in fpm_pctl_init_main()
442 if (fpm_globals.is_child) { in fpm_pctl_perform_idle_server_maintenance()
464 if (fpm_globals.parent_pid != getpid()) { in fpm_pctl_heartbeat()
475 fpm_globals.heartbeat = MAX(fpm_globals.heartbeat, FPM_PCTL_MIN_HEARTBEAT); in fpm_pctl_heartbeat()
489 if (fpm_globals.parent_pid != getpid()) { in fpm_pctl_perform_idle_server_maintenance_heartbeat()
501 if (fpm_globals.is_child) { in fpm_pctl_perform_idle_server_maintenance_heartbeat()
520 if (fpm_globals.parent_pid != getpid()) { in fpm_pctl_on_socket_accept()
[all …]
H A Dfpm_env.c246 for (i = 0; i < fpm_globals.argc; i++) { in fpm_env_init_main()
248 first = fpm_globals.argv[i]; in fpm_env_init_main()
250 if (last == NULL || fpm_globals.argv[i] == last + 1) { in fpm_env_init_main()
251 last = fpm_globals.argv[i] + strlen(fpm_globals.argv[i]); in fpm_env_init_main()
269 fpm_env_argv = fpm_globals.argv; in fpm_env_init_main()
295 spprintf(&title, 0, "master process (%s)", fpm_globals.config); in fpm_env_init_main()
H A Dfpm_children.c118 ++fpm_globals.running_children; in fpm_child_link()
132 --fpm_globals.running_children; in fpm_child_unlink()
172 fpm_globals.max_requests = wp->config->pm_max_requests; in fpm_child_init()
173 fpm_globals.listening_socket = dup(wp->listening_socket); in fpm_child_init()
319 if (fpm_globals.is_child) { in fpm_children_bury()
323 } else if (fpm_globals.parent_pid == 1) { in fpm_children_bury()
421 …&& wp->running_children < max && (fpm_global_config.process_max < 1 || fpm_globals.running_childre… in fpm_children_make()
441 fpm_globals.is_child = 1; in fpm_children_make()
465 …if (!warned && fpm_global_config.process_max > 0 && fpm_globals.running_children >= fpm_global_con… in fpm_children_make()
H A Dfpm_conf.c752 prefix = fpm_globals.prefix; in fpm_evaluate_full_path()
1026fpm_globals.heartbeat = fpm_globals.heartbeat ? MIN(fpm_globals.heartbeat, (wp->config->request_sl… in fpm_conf_process_all_pools()
1250 zlog_set_level(fpm_globals.log_level); in fpm_conf_post_process()
1339 free(fpm_globals.config); in fpm_conf_cleanup()
1774 if (fpm_globals.prefix && *fpm_globals.prefix) { in fpm_conf_init_main()
1781 if (fpm_globals.pid && *fpm_globals.pid) { in fpm_conf_init_main()
1785 if (fpm_globals.config == NULL) { in fpm_conf_init_main()
1788 if (fpm_globals.prefix == NULL) { in fpm_conf_init_main()
1799 fpm_globals.config = strdup(tmp); in fpm_conf_init_main()
1802 if (!fpm_globals.config) { in fpm_conf_init_main()
[all …]
H A Dfpm_unix.c304 if (!fpm_globals.run_as_root) { in fpm_unix_conf_wp()
500 if (pipe(fpm_globals.send_config_pipe) == -1) { in fpm_unix_init_main()
514 close(fpm_globals.send_config_pipe[0]); /* close the read side of the pipe */ in fpm_unix_init_main()
518 close(fpm_globals.send_config_pipe[1]); /* close the write side of the pipe */ in fpm_unix_init_main()
526 FD_SET(fpm_globals.send_config_pipe[0], &rfds); in fpm_unix_init_main()
531 … calling process is waiting for the master process to ping via fd=%d", fpm_globals.send_config_pip… in fpm_unix_init_main()
532 ret = select(fpm_globals.send_config_pipe[0] + 1, &rfds, NULL, NULL, &tv); in fpm_unix_init_main()
539 ret = read(fpm_globals.send_config_pipe[0], &readval, sizeof(readval)); in fpm_unix_init_main()
583 fpm_globals.parent_pid = getpid(); in fpm_unix_init_main()
H A Dfpm_events.c137 if (fpm_globals.is_child) { in fpm_got_signal()
367 if (fpm_globals.parent_pid != getpid()) { in fpm_event_loop()
375 if (fpm_globals.heartbeat > 0) { in fpm_event_loop()
399 if (fpm_globals.parent_pid != getpid()) { in fpm_event_loop()
470 if (fpm_globals.parent_pid != getpid()) { in fpm_event_loop()
H A Dfpm.h66 extern struct fpm_globals_s fpm_globals;
H A Dfpm_worker_pool.c56 if ((which & FPM_CLEANUP_CHILD) == 0 && fpm_globals.parent_pid == getpid()) { in fpm_worker_pool_cleanup()
H A Dfpm_signals.c147 close(fpm_globals.listening_socket); in sig_soft_quit()
169 if (fpm_globals.parent_pid != getpid()) { in sig_handler()
H A Dfpm_systemd.c51 if (fpm_globals.parent_pid != getpid()) { in fpm_systemd_heartbeat()
H A Dfpm_main.c1829 if (fpm_globals.send_config_pipe[1]) { in main()
1831 zlog(ZLOG_DEBUG, "Sending \"0\" (error) to parent via fd=%d", fpm_globals.send_config_pipe[1]); in main()
1832 zend_quiet_write(fpm_globals.send_config_pipe[1], &writeval, sizeof(writeval)); in main()
1833 close(fpm_globals.send_config_pipe[1]); in main()
1842 if (fpm_globals.send_config_pipe[1]) { in main()
1844 zlog(ZLOG_DEBUG, "Sending \"1\" (OK) to parent via fd=%d", fpm_globals.send_config_pipe[1]); in main()
1845 zend_quiet_write(fpm_globals.send_config_pipe[1], &writeval, sizeof(writeval)); in main()
1846 close(fpm_globals.send_config_pipe[1]); in main()
H A Dzlog.c171 if (!fpm_globals.is_child) { in zlog_buf_prefix()
176 if (!fpm_globals.is_child) { in zlog_buf_prefix()
/PHP-8.1/sapi/fpm/fpm/events/
H A Dselect.c121 if (fpm_globals.parent_pid != getpid()) { in fpm_event_select_wait()
H A Dport.c163 if (fpm_globals.parent_pid != getpid()) { in fpm_event_port_wait()
H A Dkqueue.c144 if (fpm_globals.parent_pid != getpid()) { in fpm_event_kqueue_wait()
H A Depoll.c144 if (fpm_globals.parent_pid != getpid()) { in fpm_event_epoll_wait()
H A Ddevpoll.c179 if (fpm_globals.parent_pid != getpid()) { in fpm_event_devpoll_wait()
H A Dpoll.c163 if (fpm_globals.parent_pid != getpid()) { in fpm_event_poll_wait()

Completed in 46 milliseconds