On Thu, Apr 07, 2005 at 03:54:45PM +0200, Rafael Garcia-Suarez wrote:
> Gisle Aas wrote:
> > Rafael Garcia-Suarez <[EMAIL PROTECTED]> writes:
> > 
> > > Change 24194 by [EMAIL PROTECTED] on 2005/04/07 12:42:07
> > > 
> > >   Mention that select() returns -1 on error,
> > >   as suggested by Hernan Perez Masci
> > 
> > Hmmm, returning a TRUE value on failure is quite unperlish.  I wonder
> > how much software got this wrong?  For instance among the core modules
> > we find code like this.
> 
> That's right, however returning 0 on non-error makes sense (see select(2))

"0 but true", given the code Gisle has shown.

> and there are backward compatibility issues (in the event that some
> code gets it right...)

Yes.

Reply via email to