mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 10:27:12 +08:00
Update to FreeBSD Stable/9 2015-04-08
This commit is contained in:
@@ -1165,8 +1165,14 @@ main(int argc, char *argv[])
|
||||
/* signal handling */
|
||||
if (seenalrm) {
|
||||
/* last packet sent, timeout reached? */
|
||||
if (npackets && ntransmitted >= npackets)
|
||||
break;
|
||||
if (npackets && ntransmitted >= npackets) {
|
||||
struct timeval zerotime = {0, 0};
|
||||
itimer.it_value = zerotime;
|
||||
itimer.it_interval = zerotime;
|
||||
(void)setitimer(ITIMER_REAL, &itimer, NULL);
|
||||
seenalrm = 0; /* clear flag */
|
||||
continue;
|
||||
}
|
||||
retransmit();
|
||||
seenalrm = 0;
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user