#include <kernel/OS.h>#include <unistd.h>#include <sys/socket.h>#include <signal.h>#include "apr_strings.h"#include "apr_portable.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 "beosd.h"#include "ap_listen.h"#include "scoreboard.h"#include "mpm_common.h"#include "mpm.h"#include "mpm_default.h"#include "apr_thread_mutex.h"#include "apr_poll.h"Include dependency graph for beos.c:

Go to the source code of this file.
|
|
|
|
|
Definition at line 66 of file beos.c. Referenced by AP_DECLARE(), ap_mpm_child_main(), ap_mpm_run(), and master_main(). |
|
|
Definition at line 79 of file beos.c. Referenced by add_worker(), AP_DECLARE(), ap_mpm_child_main(), ap_mpm_run(), beos_pre_config(), mpmt_os2_pre_config(), netware_pre_config(), server_maintenance(), set_thread_limit(), set_threads_limit(), and thread_exception_handler(). |
|
|
Definition at line 569 of file beos.c. Referenced by perform_child_maintenance(), and perform_idle_server_maintenance(). |
|
|
Referenced by ap_mpm_run(). |
|
|
convert a recent time to its human readable components in local timezone
Definition at line 696 of file beos.c. References AP_DECLARE, ap_max_child_assigned, ap_max_requests_per_thread, 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_NOT_SUPPORTED, APR_ENOTIMPL, APR_SUCCESS, HARD_SERVER_LIMIT, HARD_THREAD_LIMIT, max_spare_threads, min_spare_threads, and mpm_state. |
|
|
Definition at line 285 of file beos.c. References is_graceful. Referenced by ap_process_http_connection(). |
|
||||||||||||||||
|
Definition at line 742 of file beos.c. References _kset_fd_limit_(), ap_listeners, ap_pid_fname, ap_scoreboard_image, ap_setup_listeners(), ap_thread_limit, ap_threads_to_start, APLOG_ALERT, APLOG_EMERG, APLOG_ERR, APLOG_INFO, APLOG_MARK, APLOG_NOTICE, APLOG_WARNING, apr_bind(), apr_pool_create, apr_socket_close(), apr_socket_create(), APR_SUCCESS, APR_UNSPEC, beosd_killpg, child_fatal, apr_sockaddr_t::family, FD_SETSIZE, getpid, HARD_SERVER_LIMIT, HARD_THREAD_LIMIT, hold_off_on_exponential_spawning, is_graceful, lr, max_spare_threads, min_spare_threads, NULL, num_listening_sockets, OK, one_process, scoreboard::parent, process_score::pid, process_rec::pool, server_rec::process, restart_pending, SB_SHARED, ap_listen_rec::sd, server_main_loop(), scoreboard::servers, set_signals(), shutdown_pending, proc_info::slot, startup_threads(), tell_workers_to_exit(), proc_info::tpool, and worker_thread(). Referenced by main(). Here is the call graph for this function: ![]() |
|
|
Definition at line 204 of file beos.c. References AP_MPMQ_STOPPING, is_graceful, mpm_state, and restart_pending. Referenced by restart(). |
|
|
Definition at line 189 of file beos.c. References AP_MPMQ_STOPPING, mpm_state, and shutdown_pending. Referenced by sig_term(). |
|
|
Definition at line 1033 of file beos.c. References APR_HOOK_REALLY_FIRST, beos_pre_config(), NULL, and one_process. Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 978 of file beos.c. References ap_coredump_dir, ap_listen_pre_config(), ap_max_requests_per_thread, AP_MPMQ_STARTING, ap_pid_fname, ap_server_root, ap_thread_limit, ap_threads_to_start, APLOG_CRIT, APLOG_MARK, APR_ALLOCATOR_MAX_FREE_UNLIMITED, apr_proc_detach(), APR_PROC_DETACH_DAEMONIZE, APR_PROC_DETACH_FOREGROUND, APR_SUCCESS, beosd_pre_config(), debug, DEFAULT_MAX_FREE_THREADS, DEFAULT_MAX_REQUESTS_PER_THREAD, DEFAULT_MIN_FREE_THREADS, DEFAULT_PIDLOG, DEFAULT_START_THREADS, getpid, HARD_THREAD_LIMIT, HTTP_INTERNAL_SERVER_ERROR, is_graceful, max_spare_threads, min_spare_threads, mpm_state, NULL, OK, one_process, and server_pid. Referenced by beos_hooks(). Here is the call graph for this function: ![]() |
|
|
Definition at line 534 of file beos.c. References APLOG_INFO, APLOG_MARK, int, make_worker(), NULL, restart_pending, and shutdown_pending. Referenced by worker_thread(). Here is the call graph for this function: ![]() |
|
|
Definition at line 137 of file beos.c. References exit. Referenced by accept_mutex_on(), ap_mpm_child_main(), child_main(), create_listener_thread(), just_die(), make_child(), make_worker(), start_threads(), and worker_main(). |
|
|
Definition at line 487 of file beos.c. References ap_max_child_assigned, ap_scoreboard_image, APEXIT_CHILDFATAL, APLOG_ALERT, APLOG_ERR, APLOG_MARK, apr_pool_create, clean_child_exit(), getpid, NULL, one_process, scoreboard::parent, process_score::pid, SERVER_DEAD, SERVER_STARTING, scoreboard::servers, set_signals(), proc_info::slot, proc_info::tpool, void(), and worker_thread(). Referenced by check_restart(), perform_idle_server_maintenance(), server_main_loop(), and startup_threads(). Here is the call graph for this function: ![]() |
|
|
Definition at line 573 of file beos.c. References ap_max_child_assigned, ap_scoreboard_image, ap_thread_limit, hold_off_on_exponential_spawning, make_worker(), MAX_SPAWN_RATE, scoreboard::servers, and spawn_rate. Referenced by ap_mpm_run(), and server_main_loop(). Here is the call graph for this function: ![]() |
|
||||||||||||||||||||
|
Definition at line 295 of file beos.c. References APLOG_MARK, APLOG_WARNING, apr_os_sock_get(), apr_socket_close(), FD_SETSIZE, NULL, and void(). Referenced by worker_thread(). Here is the call graph for this function: ![]() |
|
|
Definition at line 221 of file beos.c. References ap_start_restart(). Referenced by ap_mpm_run(), CommandLineInterpreter(), and set_signals(). Here is the call graph for this function: ![]() |
|
|
Definition at line 617 of file beos.c. References ap_max_child_assigned, ap_scoreboard_image, ap_thread_limit, APEXIT_CHILDFATAL, APLOG_MARK, APLOG_WARNING, child_fatal, child_slot, exitwhy, is_graceful, make_worker(), NULL, perform_idle_server_maintenance(), apr_proc_t::pid, restart_pending, SERVER_DEAD, scoreboard::servers, shutdown_pending, startup_threads(), status, and void(). Referenced by ap_mpm_run(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 1115 of file beos.c. References ap_max_requests_per_thread, APLOG_MARK, APLOG_STARTUP, err, GLOBAL_ONLY, and NULL. |
|
||||||||||||||||
|
Definition at line 1077 of file beos.c. References err, GLOBAL_ONLY, max_spare_threads, and NULL. |
|
||||||||||||||||
|
Definition at line 1056 of file beos.c. References APLOG_MARK, APLOG_STARTUP, err, GLOBAL_ONLY, min_spare_threads, and NULL. |
|
|
Definition at line 240 of file beos.c. References APLOG_MARK, APLOG_WARNING, NULL, one_process, restart(), sig_coredump(), and sig_term(). Referenced by ap_mpm_child_main(), ap_mpm_run(), make_child(), make_worker(), and master_main(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 1088 of file beos.c. References ap_thread_limit, APLOG_MARK, APLOG_STARTUP, err, GLOBAL_ONLY, HARD_THREAD_LIMIT, and NULL. |
|
||||||||||||||||
|
Definition at line 1040 of file beos.c. References ap_threads_to_start, APLOG_MARK, APLOG_STARTUP, err, GLOBAL_ONLY, and NULL. |
|
|
Definition at line 145 of file beos.c. References ap_coredump_dir, and server_pid. Referenced by set_signals(). |
|
|
Definition at line 216 of file beos.c. References ap_start_shutdown(). Referenced by set_signals(). Here is the call graph for this function: ![]() |
|
|
Definition at line 545 of file beos.c. References ap_scoreboard_image, ap_thread_limit, make_worker(), and scoreboard::servers. Referenced by ap_mpm_run(), and server_main_loop(). Here is the call graph for this function: ![]() |
|
|
Definition at line 226 of file beos.c. References ap_max_child_assigned, AP_MPMQ_STOPPING, apr_sendto(), APR_SUCCESS, len, and mpm_state. Referenced by ap_mpm_run(). Here is the call graph for this function: ![]() |
|
|
Definition at line 325 of file beos.c. References allocator, ap_listeners, ap_max_requests_per_thread, AP_MPMQ_RUNNING, AP_MPMQ_STARTING, APLOG_ERR, APLOG_MARK, APLOG_NOTICE, apr_accept(), APR_EINIT, APR_POLLIN, apr_recvfrom(), APR_STATUS_IS_EINTR, APR_SUCCESS, APR_UNSPEC, check_restart(), child_slot, event, len, mpm_state, n, NULL, num_listening_sockets, pollset, process_socket(), ptrans, requests_this_child, ap_listen_rec::sd, SERVER_DEAD, SERVER_READY, SERVER_STARTING, proc_info::slot, proc_info::tpool, void(), and worker_thread_count. Referenced by ap_mpm_run(), make_worker(), start_thread(), and start_threads(). Here is the call graph for this function: ![]() |
|
|
Definition at line 93 of file beos.c. Referenced by ap_mpm_run(), and master_main(). |
|
|
Definition at line 118 of file beos.c. Referenced by AP_DECLARE(), make_worker(), perform_idle_server_maintenance(), server_main_loop(), and tell_workers_to_exit(). |
|
|
Definition at line 87 of file beos.c. Referenced by AP_DECLARE(), beos_pre_config(), set_max_requests_per_thread(), and worker_thread(). |
|
|
|
|
|
|
|
|
Definition at line 126 of file beos.c. Referenced by AP_DECLARE(), ap_mpm_child_main(), pod_signal_internal(), server_maintenance(), set_signals(), thread_exception_handler(), and worker_main(). |
|
|
Definition at line 90 of file beos.c. Referenced by ap_mpm_run(), beos_pre_config(), mpmt_os2_pre_config(), perform_idle_server_maintenance(), server_main_loop(), set_threads_limit(), and startup_threads(). |
|
|
Definition at line 86 of file beos.c. Referenced by ap_mpm_run(), beos_pre_config(), netware_pre_config(), and set_threads_to_start(). |
|
|
Initial value: {
BEOS_DAEMON_COMMANDS,
LISTEN_COMMANDS,
AP_INIT_TAKE1( "StartThreads", set_threads_to_start, NULL, RSRC_CONF,
"Number of threads to launch at server startup"),
AP_INIT_TAKE1( "MinSpareThreads", set_min_spare_threads, NULL, RSRC_CONF,
"Minimum number of idle children, to handle request spikes"),
AP_INIT_TAKE1( "MaxSpareThreads", set_max_spare_threads, NULL, RSRC_CONF,
"Maximum number of idle children" ),
AP_INIT_TAKE1( "MaxClients", set_threads_limit, NULL, RSRC_CONF,
"Maximum number of children alive at the same time (max threads)" ),
AP_INIT_TAKE1( "MaxRequestsPerThread", set_max_requests_per_thread, NULL, RSRC_CONF,
"Maximum number of requests served by a thread" ),
{ NULL }
}
|
|
|
Definition at line 167 of file beos.c. Referenced by ap_mpm_run(), and server_main_loop(). |
|
|
Definition at line 571 of file beos.c. Referenced by ap_mpm_run(), perform_child_maintenance(), and perform_idle_server_maintenance(). |
|
|
Definition at line 166 of file beos.c. Referenced by ap_graceful_stop_signalled(), ap_mpm_child_main(), ap_mpm_run(), ap_start_restart(), beos_pre_config(), master_main(), mpmt_os2_pre_config(), netware_pre_config(), perchild_pre_config(), restart(), server_main_loop(), sig_hup(), sig_restart(), and sig_term(). |
|
|
|
|
|
Definition at line 89 of file beos.c. Referenced by AP_DECLARE(), ap_mpm_run(), beos_pre_config(), leader_pre_config(), perchild_pre_config(), perform_idle_server_maintenance(), set_max_spare_threads(), worker_pre_config(), and worker_thread(). |
|
|
Definition at line 88 of file beos.c. Referenced by AP_DECLARE(), ap_mpm_run(), beos_pre_config(), leader_pre_config(), perchild_pre_config(), perform_idle_server_maintenance(), set_min_spare_threads(), worker_pre_config(), and worker_thread(). |
|
|
Initial value: {
MPM20_MODULE_STUFF,
NULL,
NULL,
NULL,
NULL,
NULL,
beos_cmds,
beos_hooks
}
|
|
|
Definition at line 99 of file beos.c. Referenced by AP_DECLARE(), ap_mpm_run(), ap_start_restart(), ap_start_shutdown(), beos_pre_config(), child_main(), clean_child_exit(), leader_pre_config(), netware_pre_config(), prefork_pre_config(), signal_threads(), tell_workers_to_exit(), worker_pre_config(), and worker_thread(). |
|
|
Definition at line 91 of file beos.c. Referenced by ap_mpm_run(), and worker_thread(). |
|
|
Definition at line 129 of file beos.c. Referenced by AP_DECLARE(), ap_mpm_run(), beos_hooks(), beos_pre_config(), child_main(), leader_hooks(), leader_open_logs(), leader_pre_config(), make_child(), make_worker(), master_main(), mpmt_os2_pre_config(), perchild_hooks(), perchild_pre_config(), perchild_setup_child(), set_signals(), threadpool_hooks(), worker_hooks(), worker_open_logs(), and worker_pre_config(). |
|
|
|
|
|
|
|
|
Definition at line 165 of file beos.c. Referenced by ap_mpm_run(), ap_start_restart(), check_restart(), master_main(), restart(), server_main_loop(), sig_restart(), and worker_main(). |
|
|
Definition at line 98 of file beos.c. Referenced by beos_pre_config(), and sig_coredump(). |
|
|
Definition at line 164 of file beos.c. Referenced by ap_mpm_child_main(), ap_mpm_run(), ap_start_shutdown(), check_restart(), clean_child_exit(), CommandLineInterpreter(), master_main(), nlmUnloadSignaled(), server_main_loop(), sig_hup(), sig_term(), thread_exception_handler(), and worker_main(). |
|
|
Definition at line 567 of file beos.c. Referenced by perform_child_maintenance(), and perform_idle_server_maintenance(). |
|
|
|
|
|
|
|
|
Definition at line 102 of file beos.c. Referenced by ap_mpm_run(), child_main(), clean_child_exit(), start_thread(), worker_main(), and worker_thread(). |
|
|
|