View | Details | Raw Unified | Return to bug 151023 | Differences between
and this patch

Collapse All | Expand All

(-)ping6.c 2010-09-28 15:41:22.000000000 +0800 (-2 / +8 lines)
Lines 1091-1098 Link Here
1091
               /* signal handling */
1091
               /* signal handling */
1092
               if (seenalrm) {
1092
               if (seenalrm) {
1093
                       /* last packet sent, timeout reached? */
1093
                       /* last packet sent, timeout reached? */
1094
                       if (npackets && ntransmitted >= npackets)
1094
                       if (npackets && ntransmitted >= npackets) {
1095
                               break;
1095
                               struct timeval zerotime = {0, 0};
1096
                               itimer.it_value = zerotime;
1097
                               itimer.it_interval = zerotime;
1098
                               (void)setitimer(ITIMER_REAL, &itimer, NULL);
1099
                               seenalrm = 0;   /* clear flag */
1100
                               continue;
1101
                       }
1096
                       retransmit();
1102
                       retransmit();
1097
                       seenalrm = 0;
1103
                       seenalrm = 0;
1098
                       continue;
1104
                       continue;

Return to bug 151023