if(dir) {
apr_status_t res;
- char * buf = NULL;
+ char *buf = NULL ;
int len = strlen(sconf->gprof_dir) - 1;
if(*(dir + len) == '%') {
dir[len] = '\0';
apr_signal(SIGHUP, just_die);
apr_signal(SIGTERM, just_die);
/* The child process just closes listeners on AP_SIG_GRACEFUL.
- * The pod is used for signalling graceful restart.
+ * The pod is used for signalling the graceful restart.
*/
apr_signal(AP_SIG_GRACEFUL, stop_listening);
child_main(slot);
ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, ap_server_conf,
"caught SIGTERM, shutting down");
+
return 1;
} else if (shutdown_pending) {
/* Time to perform a graceful shut down: