tcpdump mailing list archives

Re: capturing on both interfaces simultaneously


From: abhinav narain <abhinavnarain10 () gmail com>
Date: Sun, 11 Dec 2011 11:36:14 -0500

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, <rixed () happyleptic org> 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.


Current thread: