the return value of error is -1,
EINTR is 4.

Also, it keeps printing ": Resource temporarily unavailable"
though I don't have any error statement to be printed.
This is increasing CPU usage

Abhinav

On Sun, Dec 11, 2011 at 7:48 AM, <[email protected]> wrote:

> I did not remember what select() uses to return the readable file
> descriptors, but I do remember that any select can be interrupted
> while still waiting, and that the error is then EINTR, so you have
> to catch this particular error and ignore it (ie. merely loop on
> it).
> Googling for "non-restartable system call" may provide you with more
> detail.
> -
> This is the tcpdump-workers list.
> Visit https://cod.sandelman.ca/ to unsubscribe.
>
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.

Reply via email to