"Peter T. Breuer" wrote:
[snip]> um, shouldn't you be testing for res==-1, as well?

> > specifically that condition and errno==EINTR is how I'd expect
> > signals to effect the loop...

[snip]

> I assumed that "error" is something like trying to  watch for a
> negative number or zero descriptors, or having a fd_set that doesn't
> contain open fd's. The reason I assumed that is because EINTR is not
> listed as a possible:
>
>
> ERRORS
>        EBADF   An invalid file descriptor was given in one of the
>                sets.
>        EINTR   A non blocked signal was caught.

umm ^^^^^^ - it looks like it's listed here :)

>        EINVAL  n is negative.
>        ENOMEM  select was unable to allocate memory for  internal
>                tables.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to