From fab5a2edae79ac3ab2c9f74c736eac8a9a0adc36 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Tue, 2 Dec 2003 20:50:57 +0000 Subject: [PATCH] Fix for ping using all CPU time when network unreachable --- mbtask/ping.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mbtask/ping.c b/mbtask/ping.c index 974c9bfe..a159a78e 100644 --- a/mbtask/ping.c +++ b/mbtask/ping.c @@ -367,6 +367,7 @@ void *ping_thread(void) if (icmp_errs++ < ICMP_MAX_ERRS) Syslog('?', "ping: to %s rc=%d", pingaddress, rc); pingresult[pingnr] = FALSE; + sleep(10); } else { pingsend = time(NULL);