Claudio Natoli <claudio.natoli@memetrics.com> writes:
> It would be more consistent, but unfortunately GetLastError() != errno.
Yeah, I saw Magnus' explanation. So essentially this is a workaround
for a bug in Windows' select() emulation.
Rather than hoping that we'll remember to decorate every select() call
with this workaround, would it make sense to use a wrapper function?
I'm loath to invent pg_select() but it might be cleaner than this.
regards, tom lane