bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: interix 3.5 select bug


From: Jim Meyering
Subject: Re: interix 3.5 select bug
Date: Wed, 11 Mar 2009 15:00:39 +0100

Simon Josefsson wrote:

> Jim Meyering <address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]