This commit fixes #13 (Debian #308695): don't remove hosts if sendto returns an error. The error might recover and fping should still try to reach the host and count it as packet loss.

pull/23/head
Thomas Liske 13 years ago
parent 546ba7eb93
commit a5828a2795

@ -1586,10 +1586,11 @@ int send_ping( int s, HOST_ENTRY *h )
}/* IF */
num_unreachable++;
remove_job( h );
h->num_sent++;
h->num_sent_i++;
num_pingsent++;
free( buffer );
return(0);
return(1);
}
/* mark this trial as outstanding */

Loading…
Cancel
Save