Home
last modified time | relevance | path

Searched refs:wp (Results 1 – 25 of 36) sorted by relevance

12

/PHP-8.0/sapi/fpm/fpm/
H A Dfpm_unix.c242 if (wp->socket_uid != -1 || wp->socket_gid != -1) { in fpm_unix_set_socket_premissions()
269 if (wp->config->user && *wp->config->user) { in fpm_unix_conf_wp()
271 wp->set_uid = strtoul(wp->config->user, 0, 10); in fpm_unix_conf_wp()
289 if (wp->config->group && *wp->config->group) { in fpm_unix_conf_wp()
291 wp->set_gid = strtoul(wp->config->group, 0, 10); in fpm_unix_conf_wp()
305 if (wp->set_uid == 0 || wp->set_gid == 0) { in fpm_unix_conf_wp()
311 if (wp->config->user && *wp->config->user) { in fpm_unix_conf_wp()
314 if (wp->config->group && *wp->config->group) { in fpm_unix_conf_wp()
317 if (wp->config->chroot && *wp->config->chroot) { in fpm_unix_conf_wp()
368 if (wp->config->chdir && *wp->config->chdir) { in fpm_unix_init_child()
[all …]
H A Dfpm_worker_pool.c31 if (wp->config) { in fpm_worker_pool_free()
32 free(wp->config); in fpm_worker_pool_free()
34 if (wp->user) { in fpm_worker_pool_free()
35 free(wp->user); in fpm_worker_pool_free()
37 if (wp->home) { in fpm_worker_pool_free()
38 free(wp->home); in fpm_worker_pool_free()
40 if (wp->limit_extensions) { in fpm_worker_pool_free()
44 free(wp); in fpm_worker_pool_free()
52 for (wp = fpm_worker_all_pools; wp; wp = wp_next) { in fpm_worker_pool_cleanup()
53 wp_next = wp->next; in fpm_worker_pool_cleanup()
[all …]
H A Dfpm_process_ctl.c157 for (wp = fpm_worker_all_pools; wp; wp = wp->next) { in fpm_pctl_kill_all()
298 for (wp = fpm_worker_all_pools; wp; wp = wp->next) { in fpm_pctl_check_request_timeout()
328 for (wp = fpm_worker_all_pools; wp; wp = wp->next) { in fpm_pctl_perform_idle_server_maintenance()
345 if (!wp->warn_lq) { in fpm_pctl_perform_idle_server_maintenance()
347 wp->warn_lq = 1; in fpm_pctl_perform_idle_server_maintenance()
350 wp->warn_lq = 0; in fpm_pctl_perform_idle_server_maintenance()
404 if (wp->running_children >= wp->config->pm_max_children) { in fpm_pctl_perform_idle_server_maintenance()
405 if (!wp->warn_max_children && !wp->shared) { in fpm_pctl_perform_idle_server_maintenance()
424 if (!wp->warn_max_children && !wp->shared) { in fpm_pctl_perform_idle_server_maintenance()
527 if (wp->running_children >= wp->config->pm_max_children) { in fpm_pctl_on_socket_accept()
[all …]
H A Dfpm_children.c92 struct fpm_worker_pool_s *wp = child->wp; in fpm_child_link() local
94 ++wp->running_children; in fpm_child_link()
97 child->next = wp->children; in fpm_child_link()
102 wp->children = child; in fpm_child_link()
128 for (wp = fpm_worker_all_pools; wp; wp = wp->next) { in fpm_child_find()
243 struct fpm_worker_pool_s *wp = child->wp; in fpm_children_bury() local
317 c->wp = wp; in fpm_resources_prepare()
346 for (wp = fpm_worker_all_pools; wp; wp = wp->next) { in fpm_child_resources_use()
347 if (wp == child->wp || wp == child->wp->shared) { in fpm_child_resources_use()
417 fpm_child_init(wp); in fpm_children_make()
[all …]
H A Dfpm_conf.c743 if (wp && wp->config) { in fpm_evaluate_full_path()
787 if (**path != '/' && wp != NULL && wp->config) { in fpm_evaluate_full_path()
803 for (wp = fpm_worker_all_pools; wp; wp = wp->next) { in fpm_conf_process_all_pools()
806 if (wp->config->prefix && *wp->config->prefix) { in fpm_conf_process_all_pools()
1051 if (wp->config->chroot && *wp->config->chroot) { in fpm_conf_process_all_pools()
1067 if (wp->config->chdir && *wp->config->chdir) { in fpm_conf_process_all_pools()
1174 for (wp = fpm_worker_all_pools; wp; wp = wp->next) { in fpm_conf_process_all_pools()
1305 for (wp = fpm_worker_all_pools; wp; wp = wp->next) { in fpm_conf_post_process()
1403 for (wp = fpm_worker_all_pools; wp; wp = wp->next) { in fpm_conf_ini_parser_section()
1692 for (wp = fpm_worker_all_pools; wp; wp = wp->next) { in fpm_conf_dump()
[all …]
H A Dfpm_scoreboard.c42 for (wp = fpm_worker_all_pools; wp; wp = wp->next) { in fpm_scoreboard_init_main()
51 if (wp->scoreboard) { in fpm_scoreboard_init_main()
62 wp->scoreboard = shm_mem; in fpm_scoreboard_init_main()
63 wp->scoreboard->pm = wp->config->pm; in fpm_scoreboard_init_main()
64 wp->scoreboard->nprocs = wp->config->pm_max_children; in fpm_scoreboard_init_main()
66 strlcpy(wp->scoreboard->pool, wp->config->name, sizeof(wp->scoreboard->pool)); in fpm_scoreboard_init_main()
68 if (wp->shared) { in fpm_scoreboard_init_main()
70 wp->scoreboard->shared = wp->shared->scoreboard; in fpm_scoreboard_init_main()
225 struct fpm_worker_pool_s *wp = child->wp; in fpm_scoreboard_proc_get_from_child() local
374 struct fpm_worker_pool_s *wp = child->wp; in fpm_scoreboard_proc_free() local
[all …]
H A Dfpm_systemd.c17 struct fpm_worker_pool_s *wp; in fpm_systemd() local
22 for (wp = fpm_worker_all_pools; wp; wp = wp->next) { in fpm_systemd()
23 if (wp->scoreboard) { in fpm_systemd()
24 active += wp->scoreboard->active; in fpm_systemd()
25 idle += wp->scoreboard->idle; in fpm_systemd()
26 requests += wp->scoreboard->requests; in fpm_systemd()
27 slow_req += wp->scoreboard->slow_rq; in fpm_systemd()
H A Dfpm_env.c145 if (wp->config->clear_env) { in fpm_env_init_child()
153 if (wp->user) { in fpm_env_init_child()
154 setenv("USER", wp->user, 1); in fpm_env_init_child()
157 if (wp->home) { in fpm_env_init_child()
158 setenv("HOME", wp->home, 1); in fpm_env_init_child()
184 free(wp->user); in fpm_env_conf_wp()
185 wp->user = 0; in fpm_env_conf_wp()
189 free(wp->home); in fpm_env_conf_wp()
190 wp->home = 0; in fpm_env_conf_wp()
200 struct fpm_worker_pool_s *wp; in fpm_env_init_main() local
[all …]
H A Dfpm_sockets.c217 if (wp->listen_address_domain == FPM_AF_UNIX) { in fpm_sockets_new_listening_socket()
224 saved_umask = umask(0777 ^ wp->socket_mode); in fpm_sockets_new_listening_socket()
229 if (wp->listen_address_domain == FPM_AF_UNIX) { in fpm_sockets_new_listening_socket()
236 if (wp->listen_address_domain == FPM_AF_UNIX) { in fpm_sockets_new_listening_socket()
392 struct fpm_worker_pool_s *wp; in fpm_sockets_init_main() local
443 for (wp = fpm_worker_all_pools; wp; wp = wp->next) { in fpm_sockets_init_main()
444 switch (wp->listen_address_domain) { in fpm_sockets_init_main()
446 wp->listening_socket = fpm_socket_af_inet_listening_socket(wp); in fpm_sockets_init_main()
453 wp->listening_socket = fpm_socket_af_unix_listening_socket(wp); in fpm_sockets_init_main()
457 if (wp->listening_socket == -1) { in fpm_sockets_init_main()
[all …]
H A Dfpm_log.c37 for (wp = fpm_worker_all_pools; wp; wp = wp->next) { in fpm_log_open()
52 dup2(fd, wp->log_fd); in fpm_log_open()
54 fd = wp->log_fd; in fpm_log_open()
57 wp->log_fd = fd; in fpm_log_open()
72 if (!wp || !wp->config) { in fpm_log_init_child()
76 if (wp->config->access_log && *wp->config->access_log) { in fpm_log_init_child()
83 fpm_log_fd = wp->log_fd; in fpm_log_init_child()
87 for (wp = fpm_worker_all_pools; wp; wp = wp->next) { in fpm_log_init_child()
88 if (wp->log_fd > -1 && wp->log_fd != fpm_log_fd) { in fpm_log_init_child()
89 close(wp->log_fd); in fpm_log_init_child()
[all …]
H A Dfpm_unix.h8 int fpm_unix_resolve_socket_premissions(struct fpm_worker_pool_s *wp);
9 int fpm_unix_set_socket_premissions(struct fpm_worker_pool_s *wp, const char *path);
10 int fpm_unix_free_socket_premissions(struct fpm_worker_pool_s *wp);
12 int fpm_unix_init_child(struct fpm_worker_pool_s *wp);
H A Dfpm_php.c114 static int fpm_php_apply_defines(struct fpm_worker_pool_s *wp) /* {{{ */ in fpm_php_apply_defines() argument
118 for (kv = wp->config->php_values; kv; kv = kv->next) { in fpm_php_apply_defines()
124 for (kv = wp->config->php_admin_values; kv; kv = kv->next) { in fpm_php_apply_defines()
136 if (wp->listen_address_domain == FPM_AF_INET) { in fpm_php_set_allowed_clients()
137 fcgi_set_allowed_clients(wp->config->listen_allowed_clients); in fpm_php_set_allowed_clients()
211 int fpm_php_init_child(struct fpm_worker_pool_s *wp) /* {{{ */ in fpm_php_init_child() argument
213 if (0 > fpm_php_apply_defines(wp) || in fpm_php_init_child()
214 0 > fpm_php_set_allowed_clients(wp)) { in fpm_php_init_child()
218 if (wp->limit_extensions) { in fpm_php_init_child()
220 limit_extensions = wp->limit_extensions; in fpm_php_init_child()
[all …]
H A Dfpm.c93 struct fpm_worker_pool_s *wp; in fpm_run() local
96 for (wp = fpm_worker_all_pools; wp; wp = wp->next) { in fpm_run()
99 is_parent = fpm_children_create_initial(wp); in fpm_run()
H A Dfpm_children.h13 int fpm_children_create_initial(struct fpm_worker_pool_s *wp);
17 int fpm_children_make(struct fpm_worker_pool_s *wp, int in_event_loop, int nb_to_spawn, int is_debu…
24 struct fpm_worker_pool_s *wp; member
H A Dfpm_status.c23 int fpm_status_init_child(struct fpm_worker_pool_s *wp) /* {{{ */ in fpm_status_init_child() argument
25 if (!wp || !wp->config) { in fpm_status_init_child()
30 if (wp->config->pm_status_path) { in fpm_status_init_child()
31 fpm_status_uri = strdup(wp->config->pm_status_path); in fpm_status_init_child()
34 if (wp->config->ping_path) { in fpm_status_init_child()
35 if (!wp->config->ping_response) { in fpm_status_init_child()
36 …RROR, "[pool %s] ping is set (%s) but ping.response is not set.", wp->config->name, wp->config->pi… in fpm_status_init_child()
39 fpm_status_ping_uri = strdup(wp->config->ping_path); in fpm_status_init_child()
40 fpm_status_ping_response = strdup(wp->config->ping_response); in fpm_status_init_child()
H A Dfpm_php_trace.c39 int callers_limit = child->wp->config->request_slowlog_trace_depth; in fpm_php_trace_dump()
52 fprintf(slowlog, "\n%s [pool %s] pid %d\n", buf, child->wp->config->name, (int) pid); in fpm_php_trace_dump()
193 fpm_scoreboard_update(0, 0, 0, 0, 0, 0, 1, FPM_SCOREBOARD_ACTION_INC, child->wp->scoreboard); in fpm_php_trace()
198 slowlog = fopen(child->wp->config->slowlog, "a+"); in fpm_php_trace()
201 zlog(ZLOG_SYSERROR, "unable to open slowlog (%s)", child->wp->config->slowlog); in fpm_php_trace()
H A Dfpm_stdio.c139 int fpm_stdio_init_child(struct fpm_worker_pool_s *wp) /* {{{ */ argument
196 zlog_stream_set_decorating(log_stream, child->wp->config->decorate_workers_output);
199 child->wp->config->name, (int) child->pid, is_stdout ? "stdout" : "stderr");
210 child->wp->config->name, (int) child->pid, is_stdout ? "stdout" : "stderr");
289 if (0 == child->wp->config->catch_workers_output) { /* not required */
319 if (0 == child->wp->config->catch_workers_output) { /* not required */
340 if (0 == child->wp->config->catch_workers_output) { /* not required */
355 if (child->wp->config->catch_workers_output) {
H A Dfpm_events.c327 struct fpm_worker_pool_s *wp; in fpm_event_init_main() local
342 for (wp = fpm_worker_all_pools; wp; wp = wp->next) { in fpm_event_init_main()
343 if (!wp->config) continue; in fpm_event_init_main()
344 if (wp->config->catch_workers_output && wp->config->pm_max_children > 0) { in fpm_event_init_main()
345 max += (wp->config->pm_max_children * 2); in fpm_event_init_main()
H A Dfpm_log.h7 int fpm_log_init_child(struct fpm_worker_pool_s *wp);
H A Dfpm_env.h10 int fpm_env_init_child(struct fpm_worker_pool_s *wp);
H A Dfpm_php.h34 int fpm_php_init_child(struct fpm_worker_pool_s *wp);
H A Dfpm_stdio.h12 int fpm_stdio_init_child(struct fpm_worker_pool_s *wp);
H A Dfpm_scoreboard.h74 int fpm_scoreboard_init_child(struct fpm_worker_pool_s *wp);
89 void fpm_scoreboard_free(struct fpm_worker_pool_s *wp);
H A Dfpm_status.h22 int fpm_status_init_child(struct fpm_worker_pool_s *wp);
/PHP-8.0/ext/standard/tests/general_functions/
H A Dproc_nice_basic-win.phpt82 …print (($wp = get_priority_from_wmic()) === $data[0] ? 'Passed' : 'Failed (' . $wp . ')') . PHP_EO…

Completed in 69 milliseconds

12