Fix for ping using all CPU time when network unreachable

This commit is contained in:
Michiel Broek 2003-12-02 20:50:57 +00:00
parent f52361396c
commit fab5a2edae

View File

@ -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);