httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/server scoreboard.c
Date Mon, 24 Dec 2001 21:00:18 GMT
trawick     01/12/24 13:00:18

  Modified:    server   scoreboard.c
  Log:
  fix a horrible bug which caused scoreboard initialation to always exit
  
  Revision  Changes    Path
  1.43      +3 -1      httpd-2.0/server/scoreboard.c
  
  Index: scoreboard.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/scoreboard.c,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- scoreboard.c	2001/12/24 13:18:44	1.42
  +++ scoreboard.c	2001/12/24 21:00:18	1.43
  @@ -219,7 +219,9 @@
           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 */
  
  
  

Mime
View raw message