Simon Josefsson wrote: > Jim Meyering <j...@meyering.net> writes: > >> + * lib/nanosleep.c (my_usleep): Use 1, not 0, as the first argument. >> + This avoids a failure on Interix 3.5. Details in >> + http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16077 > > Is this the best solution? It seems that another solution would be to > detect this problem, and to replace select if the system's select > doesn't work. Is there anything in POSIX whether this should work or > not?
I haven't studied the spec enough to say, but now I agree with you. Using select like that is certainly common practice. This looks like a job for a replacement function. However, technically the configure-time test would have to be one that runs a binary, to determine if select fails like that. and that's ugly... all of this for interix. humph. Maybe I'll wait until someone else contributes the module.