Re: interix 3.5 select bug

2009-03-13 Thread Bruno Haible
Jim Meyering wrote: > > select (0, rfds, wfds, xfds, timeout) is supposed to be equivalent to > > select (0, NULL, NULL, NULL, timeout) and supposed to be equivalent to > > select (n, NULL, NULL, NULL, timeout) for any n > 0. ... > > I agree. OK, I committed the patch. Bruno

RE: interix 3.5 select bug

2009-03-13 Thread Markus Duft
> > Jim Meyering wrote: > > > + /* Interix 3.5 has a bug: it does not support nfds == 0. */ > > > + if (nfds == 0) > > > +{ > > > + nfds = 1; > > > + rfds = NULL; > > > + wfds = NULL; > > > + xfds = NULL; > > > +} > > > > Did you consider doing the above only when al

Re: interix 3.5 select bug

2009-03-13 Thread Jim Meyering
Bruno Haible wrote: > Jim Meyering wrote: >> > + /* Interix 3.5 has a bug: it does not support nfds == 0. */ >> > + if (nfds == 0) >> > +{ >> > + nfds = 1; >> > + rfds = NULL; >> > + wfds = NULL; >> > + xfds = NULL; >> > +} >> >> Did you consider doing the above only