First ping after a preload (-l) was sent undelayed.

PR:		bin/32354
Obtained from:	ping.c,v 1.61
This commit is contained in:
ru 2002-01-15 15:10:52 +00:00
parent 5768c2f3d4
commit c12a24b71b

View File

@ -985,7 +985,8 @@ main(argc, argv)
itimer.it_interval = interval;
itimer.it_value = interval;
(void)setitimer(ITIMER_REAL, &itimer, NULL);
retransmit();
if (ntransmitted == 0)
retransmit();
}
fdmasks = howmany(s + 1, NFDBITS) * sizeof(fd_mask);