Tom Lane wrote:
> Joe Conway <mail@joeconway.com> writes:
> > The thing was that with the extra +1, I was repeatedly getting a wall-clock
> > time of 2 seconds with a timeout set to 1 second. It seemed odd to have my 1
> > second timeout automatically turned into 2 seconds every time.
>
> That is odd; seems like you should get between 1 and 2 seconds. How
> were you measuring the delay, exactly?
Remember, that if you add 1, the select() is going to get tv_sec = 2, so
yes, it will be two seconds.
-- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610)
359-1001+ If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square,
Pennsylvania19073