Correcting wait behavior for wpcapslip tool
-Added a check for EAGAIN to errno (this is need to handle temporary timeouts) -Recompiled wpcapslip6.exe
This commit is contained in:
parent
5762179159
commit
844c550ff5
2 changed files with 1 additions and 1 deletions
|
@ -1321,7 +1321,7 @@ main(int argc, char **argv)
|
|||
tv.tv_usec = 10;
|
||||
ret = select(maxfd + 1, &rset, &wset, NULL, &tv);
|
||||
}
|
||||
if(ret == -1 && errno != EINTR) {
|
||||
if(ret == -1 && errno != EINTR && errno != EAGAIN) {
|
||||
err(1, "select");
|
||||
}
|
||||
else if(ret > 0) {
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue