Re: how to tell if data is available for a file descriptor

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sat, 13 Sep 1997 15:57:11 +0100 (BST)


> However, I noticed what looks like an error in my manpage over here.
>
> timeout is an upper bound on the amount of time elapsed
> before select returns. It may be zero, causing select to
> return immediately. If timeout is NULL (no timeout),
> select can block indefinitely.

No its an error in your reading of it. timeout is a struct pointer. NULL
means nothing, a timeval of {0,0} means don't wait