Re: gettimeofday() goes backwards on FreeBSD 4.9

Darcy Buskermolen <darcy@wavefire.com>

From: Darcy Buskermolen <darcy@wavefire.com>
To: Tom Lane <tgl@sss.pgh.pa.us>, "Marc G. Fournier" <scrappy@postgresql.org>
Cc: pgsql-hackers@postgresql.org
Date: 2003-11-29T00:22:22Z
Lists: pgsql-hackers
On November 28, 2003 12:33 pm, Tom Lane wrote:
> I said:
> > I'm wondering if there's an actual bug in gettimeofday() in this
> > platform, such that once in a while it returns a value that's off
> > a minute or so ...
>
> Whoa.  Try the following test program.  Then send it in to your friendly
> local BSD hackers ....
>
> > uname -a
>
> FreeBSD pgsql74.hub.org 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #3: Sat Sep
> 20 14:16:48 ADT 2003     root@neptune.hub.org:/usr/obj/usr/src/sys/kernel 
> i386
>
> > ./a.out
----8<------ snip
Further to my last email, after 30 minutes of running I was able to get 
simular behavior off the 5.2 test system.

-- 
Darcy Buskermolen
Wavefire Technologies Corp.
ph: 250.717.0200
fx:  250.763.1759
http://www.wavefire.com