I just ignored that case of return value -1 : and continued. It works now. The memory usage for two captures is 15%. I think I din't gain much using select() !
Abhinav On Sun, Dec 11, 2011 at 12:09 PM, <[email protected]> wrote: > -[ Sun, Dec 11, 2011 at 11:36:14AM -0500, abhinav narain ]---- > > the return value of error is -1, > > EINTR is 4. > > errno is EINTR. > If select returns -1, check for errno. If errno == EINTR, just retry. > > - This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
