| 863 | */ |
| 864 | |
| 865 | static 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(); |
nothing calls this directly
no test coverage detected