This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Dear Adhemerval, > +__pselect (int nfds, fd_set *readfds, fd_set *writefds, fd_set > *exceptfds, > + const struct timespec *timeout, const sigset_t *sigmask) > +{ > + int ret = __pselect_syscall (nfds, readfds, writefds, exceptfds, > timeout, > + sigmask); > + if (ret < 0 && errno != ENOSYS) > + return ret; Is the above condition correct? The pselect returns -1 on error or >= 0 on success. Shouldn't it be instead: if (! (ret == -1 && errno == ENOSYS)) Only when pselect is not supported we shall fallback to select based implementation. Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de
Attachment:
pgpeUzQWx5Okc.pgp
Description: OpenPGP digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |