#include "apr.h"#include "apr_portable.h"#include "apr_strings.h"#include "apr_file_io.h"#include "apr_thread_proc.h"#include "apr_signal.h"#include "apr_thread_cond.h"#include "apr_thread_mutex.h"#include "apr_proc_mutex.h"#include "apr_want.h"#include "ap_config.h"#include "httpd.h"#include "http_main.h"#include "http_log.h"#include "http_config.h"#include "http_core.h"#include "http_connection.h"#include "ap_mpm.h"#include "mpm_common.h"#include "ap_listen.h"#include "scoreboard.h"#include "mpm_default.h"#include "apr_poll.h"#include <signal.h>#include <limits.h>#include "apr_atomic.h"Include dependency graph for leader.c:

Go to the source code of this file.
|
|
|
|
|
|
|
|
Definition at line 79 of file leader.c. Referenced by perchild_pre_config(). |
|
|
Definition at line 97 of file leader.c. Referenced by perchild_pre_config(). |
|
|
Definition at line 148 of file leader.c. Referenced by process_socket(), and worker_main(). |
|
|
Definition at line 86 of file leader.c. Referenced by perchild_pre_config(), and set_server_limit(). |
|
|
|
|
|
Definition at line 104 of file leader.c. Referenced by perchild_pre_config(), and set_thread_limit(). |
|
|
Definition at line 196 of file leader.c. Referenced by ap_mpm_run(), child_main(), listener_thread(), and worker_thread(). |
|
|
Definition at line 351 of file leader.c. Referenced by check_infinite_requests(), child_main(), listener_thread(), sig_term(), and worker_thread(). |
|
|
|
|
|
Definition at line 352 of file leader.c. Referenced by child_main(), and signal_threads(). |
|
|
Definition at line 245 of file leader.c. Referenced by worker_stack_awaken_next(). |
|
|
Definition at line 246 of file leader.c. Referenced by worker_stack_awaken_next(), worker_stack_create(), and worker_stack_wait(). |
|
|
Definition at line 248 of file leader.c. Referenced by worker_stack_awaken_next(), worker_stack_create(), and worker_stack_wait(). |
|
|
Definition at line 247 of file leader.c. Referenced by worker_stack_term(), and worker_stack_wait(). |
|
|
|
|
|
convert a recent time to its human readable components in local timezone
Definition at line 368 of file leader.c. References ap_daemons_limit, AP_DECLARE, ap_max_daemons_limit, ap_max_requests_per_child, AP_MPMQ_DYNAMIC, AP_MPMQ_HARD_LIMIT_DAEMONS, AP_MPMQ_HARD_LIMIT_THREADS, AP_MPMQ_IS_FORKED, AP_MPMQ_IS_THREADED, AP_MPMQ_MAX_DAEMON_USED, AP_MPMQ_MAX_DAEMONS, AP_MPMQ_MAX_REQUESTS_DAEMON, AP_MPMQ_MAX_SPARE_DAEMONS, AP_MPMQ_MAX_SPARE_THREADS, AP_MPMQ_MAX_THREADS, AP_MPMQ_MIN_SPARE_DAEMONS, AP_MPMQ_MIN_SPARE_THREADS, AP_MPMQ_MPM_STATE, AP_MPMQ_STATIC, ap_threads_per_child, APR_ENOTIMPL, APR_SUCCESS, max_spare_threads, min_spare_threads, mpm_state, server_limit, and thread_limit. |
|
|
Definition at line 582 of file leader.c. References workers_may_exit. |
|
||||||||||||||||
|
Definition at line 1424 of file leader.c. References ap_daemons_limit, ap_daemons_to_start, AP_MPMQ_RUNNING, AP_MPMQ_STOPPING, ap_my_pid, ap_pid_fname, ap_scoreboard_image, ap_threads_per_child, APLOG_DEBUG, APLOG_EMERG, APLOG_INFO, APLOG_MARK, APLOG_NOTICE, APLOG_WARNING, APR_LOCK_DEFAULT, APR_LOCK_SYSVSEM, apr_signal, APR_SUCCESS, changed_limit_at_restart, first_server_limit, first_thread_limit, getpid, scoreboard::global, max_spare_threads, min_spare_threads, mpm_state, NULL, OK, one_process, process_rec::pool, server_rec::process, global_score::running_generation, SB_SHARED, server_limit, server_main_loop(), set_signals(), startup_children(), thread_limit, and unixd_killpg. Here is the call graph for this function: ![]() |
|
|
Definition at line 475 of file leader.c. References AP_MPMQ_STOPPING, and mpm_state. |
|
|
Definition at line 461 of file leader.c. References AP_MPMQ_STOPPING, and mpm_state. |
|
|
Definition at line 616 of file leader.c. References ap_max_requests_per_child, requests_this_child, signal_threads(), and ST_GRACEFUL. Referenced by listener_thread(), and worker_thread(). Here is the call graph for this function: ![]() |
|
|
Definition at line 837 of file leader.c. Referenced by child_main(). |
|
|
Definition at line 988 of file leader.c. References ap_max_requests_per_child, AP_MPMQ_RUNNING, AP_MPMQ_STARTING, ap_my_pid, ap_reopen_scoreboard(), ap_threads_per_child, APEXIT_CHILDFATAL, APEXIT_CHILDSICK, APLOG_ALERT, APLOG_EMERG, APLOG_MARK, apr_pool_create, APR_SUCCESS, apr_thread_create(), apr_threadattr_create(), apr_threadattr_detach_set(), APR_USEC_PER_SEC, check_signal(), clean_child_exit(), getpid, join_start_thread(), join_workers(), mpm_state, NULL, one_process, requests_this_child, resource_shortage, SAFE_ACCEPT, signal_threads(), ST_UNGRACEFUL, start_threads(), and unblock_signal(). Referenced by make_child(). Here is the call graph for this function: ![]() |
|
|
|
|
|
Definition at line 972 of file leader.c. References APLOG_CRIT, APLOG_MARK, APR_SUCCESS, apr_thread_join(), and start_thread_may_exit. Referenced by child_main(). Here is the call graph for this function: ![]() |
|
|
Definition at line 954 of file leader.c. References ap_threads_per_child, APLOG_CRIT, APLOG_MARK, APR_SUCCESS, and apr_thread_join(). Referenced by child_main(). Here is the call graph for this function: ![]() |
|
|
Definition at line 426 of file leader.c. References clean_child_exit(). Referenced by check_signal(), and make_child(). Here is the call graph for this function: ![]() |
|
|
Definition at line 1715 of file leader.c. References APR_HOOK_MIDDLE, APR_HOOK_REALLY_FIRST, aszSucc, leader_open_logs(), leader_pre_config(), NULL, and one_process. Here is the call graph for this function: ![]() |
|
||||||||||||||||||||
|
Definition at line 1597 of file leader.c. References ap_setup_listeners(), APLOG_ALERT, APLOG_CRIT, APLOG_MARK, APLOG_STARTUP, DONE, NULL, num_listensocks, OK, and one_process. Referenced by leader_hooks(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 1620 of file leader.c. References ap_conftree, ap_coredump_dir, ap_daemons_limit, ap_daemons_to_start, ap_extended_status, ap_listen_pre_config(), ap_max_requests_per_child, AP_MPMQ_STARTING, ap_my_pid, ap_pid_fname, ap_server_root, ap_threads_per_child, APLOG_CRIT, APLOG_MARK, APR_ALLOCATOR_MAX_FREE_UNLIMITED, apr_proc_detach(), APR_PROC_DETACH_DAEMONIZE, APR_PROC_DETACH_FOREGROUND, APR_SUCCESS, ap_directive_t::args, debug, DEFAULT_LOCKFILE, DEFAULT_MAX_FREE_DAEMON, DEFAULT_MAX_REQUESTS_PER_CHILD, DEFAULT_MIN_FREE_DAEMON, DEFAULT_PIDLOG, DEFAULT_START_DAEMON, DEFAULT_THREADS_PER_CHILD, ap_directive_t::directive, ap_directive_t::filename, getpid, HTTP_INTERNAL_SERVER_ERROR, ap_directive_t::line_num, max_spare_threads, min_spare_threads, mpm_state, ap_directive_t::next, NULL, OK, one_process, parent_pid, server_limit, and strncasecmp(). Referenced by leader_hooks(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 1120 of file leader.c. References ap_max_daemons_limit, ap_scoreboard_image, APLOG_ERR, APLOG_MARK, APLOG_WARNING, apr_signal, APR_USEC_PER_SEC, child_main(), clean_child_exit(), fork(), getpid, just_die(), NULL, OK, one_process, scoreboard::parent, process_score::pid, process_score::quiescing, RAISE_SIGSTOP, SERVER_DEAD, set_signals(), and status. Referenced by ap_mpm_run(), perform_child_maintenance(), perform_idle_server_maintenance(), server_main_loop(), startup_children(), startup_workers(), and test_exclusive(). Here is the call graph for this function: ![]() |
|
|
Definition at line 1205 of file leader.c. References ap_daemons_limit, ap_max_daemons_limit, ap_scoreboard_image, ap_threads_per_child, APLOG_ERR, APLOG_INFO, APLOG_MARK, process_score::generation, idle_thread_count, make_child(), max_spare_threads, MAX_SPAWN_RATE, min_spare_threads, scoreboard::parent, process_score::pid, process_score::quiescing, SERVER_DEAD, SERVER_GRACEFUL, SERVER_READY, scoreboard::servers, worker_score::status, and status. Here is the call graph for this function: ![]() |
|
||||||||||||||||||||||||
|
Definition at line 594 of file leader.c. References apr_os_sock_get(), and ID_FROM_CHILD_THREAD. Here is the call graph for this function: ![]() |
|
|
Definition at line 496 of file leader.c. References ap_start_restart(). Here is the call graph for this function: ![]() |
|
|
Definition at line 1345 of file leader.c. References ap_daemons_limit, ap_scoreboard_image, ap_threads_per_child, APEXIT_CHILDFATAL, APEXIT_CHILDSICK, APLOG_MARK, APLOG_WARNING, child_slot, exitwhy, make_child(), NULL, scoreboard::parent, perform_idle_server_maintenance(), process_score::pid, apr_proc_t::pid, process_score::quiescing, SERVER_DEAD, startup_children(), and status. Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 1731 of file leader.c. References ap_daemons_to_start, err, GLOBAL_ONLY, and NULL. |
|
||||||||||||||||
|
Definition at line 1777 of file leader.c. References ap_daemons_limit, ap_threads_per_child, APLOG_MARK, APLOG_STARTUP, err, GLOBAL_ONLY, NULL, and server_limit. |
|
||||||||||||||||
|
Definition at line 1765 of file leader.c. References err, GLOBAL_ONLY, max_spare_threads, and NULL. |
|
||||||||||||||||
|
Definition at line 1743 of file leader.c. References APLOG_MARK, APLOG_STARTUP, err, GLOBAL_ONLY, min_spare_threads, and NULL. |
|
||||||||||||||||
|
Definition at line 1866 of file leader.c. References APLOG_MARK, APLOG_STARTUP, changed_limit_at_restart, err, first_server_limit, GLOBAL_ONLY, MAX_SERVER_LIMIT, NULL, and server_limit. |
|
|
Definition at line 501 of file leader.c. References APLOG_MARK, APLOG_WARNING, apr_signal, NULL, one_process, restart(), and sig_term(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 1906 of file leader.c. References APLOG_MARK, APLOG_STARTUP, changed_limit_at_restart, err, first_thread_limit, GLOBAL_ONLY, MAX_THREAD_LIMIT, NULL, and thread_limit. |
|
||||||||||||||||
|
Definition at line 1837 of file leader.c. References ap_threads_per_child, APLOG_MARK, APLOG_STARTUP, err, GLOBAL_ONLY, NULL, and thread_limit. |
|
|
Definition at line 486 of file leader.c. References ap_my_pid, ap_start_shutdown(), parent_pid, signal_threads(), and ST_GRACEFUL. Here is the call graph for this function: ![]() |
|
|
Definition at line 356 of file leader.c. References AP_MPMQ_STOPPING, mpm_state, terminate_mode, worker_stack_term(), and workers_may_exit. Referenced by check_infinite_requests(), child_main(), listener_thread(), sig_term(), and worker_thread(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 852 of file leader.c. References ap_my_pid, ap_scoreboard_image, ap_threads_per_child, APEXIT_CHILDFATAL, APLOG_ALERT, APLOG_DEBUG, APLOG_MARK, APLOG_NOERRNO, APR_SUCCESS, apr_thread_create(), apr_thread_exit(), APR_USEC_PER_SEC, thread_starter::child_num_arg, clean_child_exit(), my_child_num, NULL, proc_info::pid, proc_info::sd, SERVER_DEAD, SERVER_GRACEFUL, SERVER_STARTING, scoreboard::servers, start_thread_may_exit, worker_score::status, status, thread_starter::threadattr, thread_starter::threads, proc_info::tid, worker_stack_create(), worker_thread(), and worker_wakeup_create(). Referenced by child_main(). Here is the call graph for this function: ![]() |
|