Fix for ping using all CPU time when network unreachable
This commit is contained in:
parent
f52361396c
commit
fab5a2edae
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user