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
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85464
13f79535-47bb-0310-9956-
ffa450edef68
* 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
* 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;
/*