aboutsummaryrefslogtreecommitdiff
path: root/pcap-snf.c
diff options
context:
space:
mode:
authorChristopher K Lee <chris.lee@myricom.com>2014-07-31 15:06:01 -0700
committerChristopher K Lee <chris.lee@myricom.com>2014-07-31 15:06:01 -0700
commit69144228592dd266b222832ff2638200884adcba (patch)
tree8aa619428f1fed16e11dccce7ea06a1198b3614e /pcap-snf.c
parent200d84f87bbed93620a002d917c30bdfe7a291ca (diff)
Added back in EBUSY as it can be returned in SNFv3 by snf_ring_recv().
Diffstat (limited to 'pcap-snf.c')
-rw-r--r--pcap-snf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-snf.c b/pcap-snf.c
index 5e56af8e..5a0e1f99 100644
--- a/pcap-snf.c
+++ b/pcap-snf.c
@@ -147,7 +147,7 @@ snf_read(pcap_t *p, int cnt, pcap_handler callback, u_char *user)
err = snf_ring_recv(ps->snf_ring, timeout, &req);
if (err) {
- if (err == EAGAIN) {
+ if (err == EBUSY || err == EAGAIN) {
return (n);
}
else if (err == EINTR) {