Revert changes in r269180. It could cause -c N option to enter an
infinite loop if no reply packet is received. PR: 151023
This commit is contained in:
parent
3d1592ef32
commit
58da716138
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271909
@ -1090,14 +1090,8 @@ main(int argc, char *argv[])
|
|||||||
/* signal handling */
|
/* signal handling */
|
||||||
if (seenalrm) {
|
if (seenalrm) {
|
||||||
/* last packet sent, timeout reached? */
|
/* last packet sent, timeout reached? */
|
||||||
if (npackets && ntransmitted >= npackets) {
|
if (npackets && ntransmitted >= npackets)
|
||||||
struct timeval zerotime = {0, 0};
|
break;
|
||||||
itimer.it_value = zerotime;
|
|
||||||
itimer.it_interval = zerotime;
|
|
||||||
(void)setitimer(ITIMER_REAL, &itimer, NULL);
|
|
||||||
seenalrm = 0; /* clear flag */
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
retransmit();
|
retransmit();
|
||||||
seenalrm = 0;
|
seenalrm = 0;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user