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:
@@ -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__);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user