summaryrefslogtreecommitdiff
path: root/netsniff-ng.c
diff options
context:
space:
mode:
Diffstat (limited to 'netsniff-ng.c')
-rw-r--r--netsniff-ng.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/netsniff-ng.c b/netsniff-ng.c
index 682fb39..331e476 100644
--- a/netsniff-ng.c
+++ b/netsniff-ng.c
@@ -474,8 +474,10 @@ static void receive_to_xmit(struct ctx *ctx)
}
ret = poll(&rx_poll, 1, -1);
- if (unlikely(ret < 0))
- panic("Poll failed!\n");
+ if (unlikely(ret < 0)) {
+ if (errno != EINTR)
+ panic("Poll failed!\n");
+ }
}
out:
@@ -985,8 +987,10 @@ static void recv_only_or_dump(struct ctx *ctx)
}
ret = poll(&rx_poll, 1, -1);
- if (unlikely(ret < 0))
- panic("Poll failed!\n");
+ if (unlikely(ret < 0)) {
+ if (errno != EINTR)
+ panic("Poll failed!\n");
+ }
}
bug_on(gettimeofday(&end, NULL));
t 2 LEDs (LED[0] and LED[1]) to display different status information that can be selected by setting LED mode. LED Mode parameter (vsc8531, led-0-mode) and (vsc8531, led-1-mode) get from Device Tree. Signed-off-by: Raju Lakkaraju <Raju.Lakkaraju@microsemi.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/timers')