Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)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 timeout
argument may be modified.
regards, tom lane