Changes with Apache 2.3.10
+ *) httpd: When no -k option is provided on the httpd command line, the server
+ was starting without checking for an existing pidfile. PR 50350
+ [Eric Covener]
+
*) mod_proxy: Put the worker in error state if the SSL handshake with the
backend fails. PR 50332.
[Daniel Ruggeri <DRuggeri primary.net>, Ruediger Pluem]
}
static const char *dash_k_arg = NULL;
+static const char *dash_k_arg_noarg = "noarg";
static int send_signal(pid_t pid, int sig)
{
}
}
- if (!strcmp(dash_k_arg, "start")) {
+ if (!strcmp(dash_k_arg, "start") || dash_k_arg == dash_k_arg_noarg) {
if (running) {
printf("%s\n", status);
return 1;
process->argc = mpm_new_argv->nelts;
process->argv = (const char * const *)mpm_new_argv->elts;
-
- if (dash_k_arg) {
- APR_REGISTER_OPTIONAL_FN(ap_signal_server);
+
+ if (NULL == dash_k_arg) {
+ dash_k_arg = dash_k_arg_noarg;
}
+
+ APR_REGISTER_OPTIONAL_FN(ap_signal_server);
}
static pid_t parent_pid, my_pid;