httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@locus.apache.org
Subject cvs commit: apache-2.0/src/modules/standard mod_unique_id.c
Date Thu, 08 Jun 2000 01:47:22 GMT
rbb         00/06/07 18:47:22

  Modified:    src/modules/standard mod_unique_id.c
  Log:
  Fix some problems with the time commit.  I guess mod_unique_id isn't turned
  on by default, which is why my last build's didn't catch this.  I'll be
  more careful in the future.
  Submitted by:	Greg Stein
  
  Revision  Changes    Path
  1.13      +5 -2      apache-2.0/src/modules/standard/mod_unique_id.c
  
  Index: mod_unique_id.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/modules/standard/mod_unique_id.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- mod_unique_id.c	2000/06/08 00:28:34	1.12
  +++ mod_unique_id.c	2000/06/08 01:47:21	1.13
  @@ -231,13 +231,13 @@
        * next second.
        */
       tv = ap_now();
  -    ap_sleep(
  +    ap_sleep(tv);
   }
   
   static void unique_id_child_init(ap_pool_t *p, server_rec *s)
   {
       pid_t pid;
  -    time_t tv;
  +    ap_time_t tv;
   
       /*
        * Note that we use the pid because it's possible that on the same
  @@ -270,6 +270,9 @@
        * going backwards in time.
        */
       tv = ap_now();
  +    /* Some systems have very low variance on the low end of their system
  +     * counter, defend against that.
  +     */
       cur_unique_id.counter = tv % APR_USEC_PER_SEC / 10;
   
       /*
  
  
  

Mime
View raw message