Gnulib module: select
Portability problems fixed by Gnulib:
selectcan only be called on descriptors created by the
socketfunction, not on regular file descriptors.
WSAGetLastErrormust be used instead.
Portability problems not fixed by Gnulib:
selectwith a timeout, some implementations modify the timeout parameter so that upon return from the function, it contains the amount of time not slept. Other implementations leave the timeout parameter unmodified.
selectreplacement might return 0 even before the timeout has passed. Programs using it with pipes can thus busy wait.
selectmay fail, setting