Merge pull request #50 from crawford/wpcapslip
Correcting wait behavior for wpcapslip tool
This commit is contained in:
commit
eec7fcd8a8
|
@ -1321,7 +1321,7 @@ main(int argc, char **argv)
|
||||||
tv.tv_usec = 10;
|
tv.tv_usec = 10;
|
||||||
ret = select(maxfd + 1, &rset, &wset, NULL, &tv);
|
ret = select(maxfd + 1, &rset, &wset, NULL, &tv);
|
||||||
}
|
}
|
||||||
if(ret == -1 && errno != EINTR) {
|
if(ret == -1 && errno != EINTR && errno != EAGAIN) {
|
||||||
err(1, "select");
|
err(1, "select");
|
||||||
}
|
}
|
||||||
else if(ret > 0) {
|
else if(ret > 0) {
|
||||||
|
|
Binary file not shown.
Loading…
Reference in a new issue