From: Jeff Trawick Date: Thu, 30 Aug 2001 15:44:13 +0000 (+0000) Subject: when we bail out due to a fatal error in apr_shm_init(), be sure X-Git-Tag: 2.0.26~378 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=938bf4075bf3cfba9ef0127587d5b6a3181de968;p=apache when we bail out due to a fatal error in apr_shm_init(), be sure to print the apr_status_t in numeric form the old message lt-httpd: could not open(create) scoreboard: Unknown resolver error wasn't so useful, but the new, improved message lt-httpd: could not open(create) scoreboard: (22528)Unknown resolver error makes it look like a syscall is returning ENOSPC and that apr shmem is returning (APR_OS_START_SYSERR + errno) instead of simply errno. off to APR land... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90814 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/scoreboard.c b/server/scoreboard.c index 5b424fd93a..e455d00209 100644 --- a/server/scoreboard.c +++ b/server/scoreboard.c @@ -130,8 +130,8 @@ static void setup_shared(apr_pool_t *p) fname = ap_server_root_relative(p, ap_scoreboard_fname); rv = apr_shm_init(&scoreboard_shm, SCOREBOARD_SIZE, fname, p); if (rv != APR_SUCCESS) { - apr_snprintf(buf, sizeof(buf), "%s: could not open(create) scoreboard: %s", - ap_server_argv0, apr_strerror(rv, errmsg, sizeof errmsg)); + apr_snprintf(buf, sizeof(buf), "%s: could not open(create) scoreboard: (%d)%s", + ap_server_argv0, rv, apr_strerror(rv, errmsg, sizeof errmsg)); fprintf(stderr, "%s\n", buf); exit(APEXIT_INIT); }