]> granicus.if.org Git - apache/commitdiff
fix a horrible bug which caused scoreboard initialation to always exit
authorJeff Trawick <trawick@apache.org>
Mon, 24 Dec 2001 21:00:18 +0000 (21:00 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 24 Dec 2001 21:00:18 +0000 (21:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92595 13f79535-47bb-0310-9956-ffa450edef68

server/scoreboard.c

index eb1bb49275107d29cca20dfbc1d8eb2d633a6820..73b88809493e7fd50d4c119963334f2c63701158 100644 (file)
@@ -219,7 +219,9 @@ AP_DECLARE_NONSTD(void) ap_create_scoreboard(apr_pool_t *p, ap_scoreboard_e sb_t
         calc_scoreboard_size();
         if (sb_type == SB_SHARED) {
             rv = setup_shared(p);
-            exit(APEXIT_INIT); /* XXX need to return an error from this function */
+            if (rv) {
+                exit(APEXIT_INIT); /* XXX need to return an error from this function */
+            }
         }
         else {
             /* A simple malloc will suffice */