openbsd-ports/www/apache-httpd/patches/patch-server_mpm_common_c
2012-10-18 08:12:16 +00:00

53 lines
2.1 KiB
Plaintext

$OpenBSD: patch-server_mpm_common_c,v 1.5 2012/10/18 08:12:17 giovanni Exp $
--- server/mpm_common.c.orig Sat Aug 18 11:25:46 2012
+++ server/mpm_common.c Fri Oct 12 16:17:16 2012
@@ -981,18 +981,18 @@ int ap_signal_server(int *exit_status, apr_pool_t *pco
*exit_status = 1;
return 1;
}
- status = "httpd (no pid file) not running";
+ status = "httpd2 (no pid file) not running";
}
else {
if (kill(otherpid, 0) == 0) {
running = 1;
status = apr_psprintf(pconf,
- "httpd (pid %" APR_PID_T_FMT ") already "
+ "httpd2 (pid %" APR_PID_T_FMT ") already "
"running", otherpid);
}
else {
status = apr_psprintf(pconf,
- "httpd (pid %" APR_PID_T_FMT "?) not running",
+ "httpd2 (pid %" APR_PID_T_FMT "?) not running",
otherpid);
}
}
@@ -1016,7 +1016,7 @@ int ap_signal_server(int *exit_status, apr_pool_t *pco
if (!strcmp(dash_k_arg, "restart")) {
if (!running) {
- printf("httpd not running, trying to start\n");
+ printf("httpd2 not running, trying to start\n");
}
else {
*exit_status = send_signal(otherpid, SIGHUP);
@@ -1026,7 +1026,7 @@ int ap_signal_server(int *exit_status, apr_pool_t *pco
if (!strcmp(dash_k_arg, "graceful")) {
if (!running) {
- printf("httpd not running, trying to start\n");
+ printf("httpd2 not running, trying to start\n");
}
else {
*exit_status = send_signal(otherpid, AP_SIG_GRACEFUL);
@@ -1043,7 +1043,7 @@ int ap_signal_server(int *exit_status, apr_pool_t *pco
*exit_status = send_signal(otherpid, AP_SIG_GRACEFUL_STOP);
}
#else
- printf("httpd MPM \"" MPM_NAME "\" does not support graceful-stop\n");
+ printf("httpd2 MPM \"" MPM_NAME "\" does not support graceful-stop\n");
#endif
return 1;
}