diff options
Diffstat (limited to 'networking/traceroute.c')
-rw-r--r-- | networking/traceroute.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/networking/traceroute.c b/networking/traceroute.c index cdc48ea5e..41a6d6d48 100644 --- a/networking/traceroute.c +++ b/networking/traceroute.c | |||
@@ -695,14 +695,11 @@ send_probe(int seq, int ttl, struct timeval *tp) | |||
695 | } | 695 | } |
696 | #endif | 696 | #endif |
697 | 697 | ||
698 | cc = sendto(sndsock, (char *)outip, | 698 | cc = xsendto(sndsock, (char *)outip, |
699 | packlen, 0, (struct sockaddr *)&whereto, sizeof(whereto)); | 699 | packlen, (struct sockaddr *)&whereto, sizeof(whereto)); |
700 | if (cc < 0 || cc != packlen) { | 700 | if (cc != packlen) { |
701 | if (cc < 0) | 701 | bb_info_msg("wrote %s %d chars, ret=%d", hostname, packlen, cc); |
702 | bb_perror_msg_and_die("sendto"); | 702 | // (void)fflush(stdout); |
703 | printf("%s: wrote %s %d chars, ret=%d\n", | ||
704 | applet_name, hostname, packlen, cc); | ||
705 | (void)fflush(stdout); | ||
706 | } | 703 | } |
707 | } | 704 | } |
708 | 705 | ||