MCPcopy Create free account
hub / github.com/apache/httpd / netware_run

Function netware_run

server/mpm/netware/mpm_netware.c:865–978  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

863 */
864
865static int netware_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s)
866{
867 apr_status_t status=0;
868
869 pconf = _pconf;
870 ap_server_conf = s;
871
872 if (setup_listeners(s)) {
873 ap_log_error(APLOG_MARK, APLOG_ALERT, status, s, APLOGNO(00223)
874 "no listening sockets available, shutting down");
875 return !OK;
876 }
877
878 restart_pending = shutdown_pending = 0;
879 worker_thread_count = 0;
880
881 if (!is_graceful) {
882 if (ap_run_pre_mpm(s->process->pool, SB_NOT_SHARED) != OK) {
883 return !OK;
884 }
885 }
886
887 /* Only set slot 0 since that is all NetWare will ever have. */
888 ap_scoreboard_image->parent[0].pid = getpid();
889 ap_scoreboard_image->parent[0].generation = ap_my_generation;
890 ap_run_child_status(ap_server_conf,
891 ap_scoreboard_image->parent[0].pid,
892 ap_my_generation,
893 0,
894 MPM_CHILD_STARTED);
895
896 set_signals();
897
898 apr_pool_create(&pmain, pconf);
899 apr_pool_tag(pmain, "pmain");
900 ap_run_child_init(pmain, ap_server_conf);
901
902 if (ap_threads_max_free < ap_threads_min_free + 1) /* Don't thrash... */
903 ap_threads_max_free = ap_threads_min_free + 1;
904 request_count = 0;
905
906 startup_workers(ap_threads_to_start);
907
908 /* Allow the Apache screen to be closed normally on exit() only if it
909 has not been explicitly forced to close on exit(). (ie. the -E flag
910 was specified at startup) */
911 if (hold_screen_on_exit > 0) {
912 hold_screen_on_exit = 0;
913 }
914
915 ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, ap_server_conf, APLOGNO(00224)
916 "%s configured -- resuming normal operations",
917 ap_get_server_description());
918 ap_log_error(APLOG_MARK, APLOG_INFO, 0, ap_server_conf, APLOGNO(00225)
919 "Server built: %s", ap_get_server_built());
920 ap_log_command_line(plog, s);
921 ap_log_mpm_common(s);
922 show_server_data();

Callers

nothing calls this directly

Calls 12

setup_listenersFunction · 0.85
startup_workersFunction · 0.85
ap_get_server_builtFunction · 0.85
ap_log_command_lineFunction · 0.85
ap_log_mpm_commonFunction · 0.85
show_server_dataFunction · 0.85
display_settingsFunction · 0.85
mpm_main_cleanupFunction · 0.85
set_signalsFunction · 0.70
ap_log_errorFunction · 0.50

Tested by

no test coverage detected