to be reported correctly. I have also moved this code into a common
location, so that individual MPMs do not need to worry about setting up
the start time.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87994
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0b1
+ *) Make the server status page show the correct restart time, and
+ thus the proper uptime. [Ryan Bloom]
+
*) Move the CGI creation logic from mod_include to mod_cgi(d). This
should reduce the amount of duplicate code that is required to
create CGI processes.
static int min_spare_threads=0;
static int max_spare_threads=0;
static int ap_thread_limit=0;
-static apr_time_t ap_restart_time=0;
AP_DECLARE_DATA int ap_extended_status = 0;
static int num_listening_sockets = 0; /* set by open_listeners in ap_mpm_run */
static apr_socket_t ** listening_sockets;
"SIGHUP received. Attempting to restart");
}
- if (!is_graceful) {
- ap_restart_time = apr_now();
- }
-
/* just before we go, tidy up the locks we've created to prevent a
* potential leak of semaphores... */
apr_destroy_lock(worker_thread_count_mutex);
static int min_spare_threads=0;
static int max_spare_threads=0;
static int ap_daemons_limit=0;
-static apr_time_t ap_restart_time=0;
AP_DECLARE_DATA int ap_extended_status = 0;
static int workers_may_exit = 0;
static int requests_this_child;
ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_NOTICE, errno, ap_server_conf,
"SIGHUP received. Attempting to restart");
}
- if (!is_graceful) {
- ap_restart_time = apr_now();
- }
delete_port(port_of_death);
return 0;
}
ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_NOTICE, 0, ap_server_conf,
"SIGHUP received. Attempting to restart");
}
- if (!is_graceful) {
- ap_restart_time = apr_now();
- }
return 0;
}
"SIGHUP received. Attempting to restart");
}
- if (!is_graceful) {
- ap_restart_time = apr_now();
- }
-
return 0;
}
/* Set up the scoreboard. The scoreboard in this MPM only applies to the
* child process and is not shared across processes
*/
- ap_restart_time = apr_now();
ap_create_scoreboard(pconf, SB_NOT_SHARED);
/* This is the child process or we are running in single process
}
memset(ap_scoreboard_image, 0, SCOREBOARD_SIZE);
ap_scoreboard_image->global.running_generation = running_gen;
+ ap_restart_time = apr_now();
apr_register_cleanup(p, NULL, ap_cleanup_scoreboard, apr_null_cleanup);
}