manoj       99/02/09 23:24:34

  Modified:    pthreads/src/main http_main.c
  Log:
  Put back ap_sync_scoreboard_image. A no-op in most cases, but it'll be
  needed.
  
  Revision  Changes    Path
  1.13      +9 -0      apache-apr/pthreads/src/main/http_main.c
  
  Index: http_main.c
  ===================================================================
  RCS file: /home/cvs/apache-apr/pthreads/src/main/http_main.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -u -r1.12 -r1.13
  --- http_main.c       1999/02/09 21:39:56     1.12
  +++ http_main.c       1999/02/10 07:24:34     1.13
  @@ -423,7 +423,15 @@
   static void reopen_scoreboard(pool *p)
   {
   }
  +#endif /* USE_SHMGET_SCOREBOARD */
  +
  +void ap_sync_scoreboard_image(void)
  +{
  +#ifdef SCOREBOARD_FILE
  +    lseek(scoreboard_fd, 0L, 0);
  +    force_read(scoreboard_fd, ap_scoreboard_image, 
sizeof(*ap_scoreboard_image));
   #endif
  +}
   
   API_EXPORT(void) ap_add_version_component(const char *component)
   {
  @@ -1965,6 +1973,7 @@
       last_non_dead = -1;
       total_non_dead = 0;
   
  +    ap_sync_scoreboard_image();
       for (i = 0; i < ap_daemons_limit; ++i) {
        int status;
        idle_thread_count = 0;
  
  
  

Reply via email to