From 58ce9e00de8e2ba95134837679f7c620d3546e5b Mon Sep 17 00:00:00 2001 From: Martin Kraemer Date: Mon, 24 Mar 2003 08:51:22 +0000 Subject: [PATCH] On failures, try to add a hint what went wrong git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99055 13f79535-47bb-0310-9956-ffa450edef68 --- server/log.c | 2 ++ server/scoreboard.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/server/log.c b/server/log.c index 95ab4aa2e8..46b00afe55 100644 --- a/server/log.c +++ b/server/log.c @@ -870,6 +870,8 @@ AP_DECLARE(piped_log *) ap_open_piped_log(apr_pool_t *p, const char *program) errno = save_errno; return NULL; } + /* Pipes are 'inheritable' by default, but we want only the logger to inherit it */ + /*@@@ missing in API! apr_pipe_inherit_unset();*/ return pl; } diff --git a/server/scoreboard.c b/server/scoreboard.c index 3e9057ed53..80cb4b8389 100644 --- a/server/scoreboard.c +++ b/server/scoreboard.c @@ -179,8 +179,8 @@ static apr_status_t create_namebased_scoreboard(apr_pool_t *pool, rv = apr_shm_create(&ap_scoreboard_shm, scoreboard_size, fname, pool); if (rv != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_CRIT, rv, NULL, - "unable to create scoreboard " - "(name-based shared memory failure)"); + "unable to create scoreboard \"%s\" " + "(name-based shared memory failure)", fname); return rv; } #endif /* APR_HAS_SHARED_MEMORY */ -- 2.40.0