1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-20 13:19:01 +00:00

Avoid infinite loop on systems where select doesn't update timeout

This commit is contained in:
dmiller
2024-10-28 23:11:53 +00:00
parent 191aadf142
commit f0c022b25f

View File

@@ -507,10 +507,9 @@ bool do_one_select_round(UltraScanInfo *USI, struct timeval *stime) {
usleep(timeleft * 1000);
selectres = 0;
}
gettimeofday(&USI->now, NULL);
} while (selectres == -1 && err == EINTR);
gettimeofday(&USI->now, NULL);
if (selectres == -1)
pfatal("select failed in %s()", __func__);