summaryrefslogtreecommitdiff
path: root/networking/udhcp
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp')
-rw-r--r--networking/udhcp/arpping.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/networking/udhcp/arpping.c b/networking/udhcp/arpping.c
index 3351807..7b702d8 100644
--- a/networking/udhcp/arpping.c
+++ b/networking/udhcp/arpping.c
@@ -81,12 +81,9 @@ int arpping(uint32_t test_ip, uint32_t from_ip, uint8_t *from_mac, const char *i
unsigned prevTime = monotonic_us();
pfd[0].events = POLLIN;
- r = poll(pfd, 1, timeout_ms);
+ r = safe_poll(pfd, 1, timeout_ms);
if (r < 0) {
- if (errno != EINTR) {
- bb_perror_msg("poll");
- break;
- }
+ break;
} else if (r) {
if (read(s, &arp, sizeof(arp)) < 0)
break;