Markus Wanner <markus(at)bluegap(dot)ch> writes:
> AFAICT the custom select() implementation we are using for Windows could
> easily be changed to mimic pselect() instead. Thus most reasonably
> up-to-date Linux distributions plus Windows certainly provide a workable
> pselect() syscall. Would it be worth using pselect() for those (and
> maybe others that support pselect() appropriately)?
I don't entirely see the point of opening ourselves up to the risk of
using a pselect that's not safe under the hood. In any case, on most
modern platforms poll() is preferable to any variant of select().
regards, tom lane