]> granicus.if.org Git - apache/commitdiff
On failures, try to add a hint what went wrong
authorMartin Kraemer <martin@apache.org>
Mon, 24 Mar 2003 08:51:22 +0000 (08:51 +0000)
committerMartin Kraemer <martin@apache.org>
Mon, 24 Mar 2003 08:51:22 +0000 (08:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99055 13f79535-47bb-0310-9956-ffa450edef68

server/log.c
server/scoreboard.c

index 95ab4aa2e8edda408f041616cc88362754594ac6..46b00afe559c6b526cc5585d17f382b39e8590eb 100644 (file)
@@ -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;
 }
 
index 3e9057ed533f1dab44f6533e152c1b0c52777b2e..80cb4b8389d47a911d1d83166f313edcdb398495 100644 (file)
@@ -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 */