Bruce Momjian <pgman@candle.pha.pa.us> writes:
> The only guess I have is that select() is modifying the timeout
> structure on return, but I didn't think it did that, does it?
You shouldn't assume so; I think it does on some platforms. The Single
Unix Spec says
On successful completion, the object pointed to by the timeoutargument may be modified.
regards, tom lane