1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-20 05:09:02 +00:00

Merge in the fix for fselect Windows bug causing a CPU-intensive loop when we only select on stdin.

This commit is contained in:
d33tah
2013-08-09 13:02:43 +00:00
parent 71033d2812
commit 9f335c6bdb

View File

@@ -500,6 +500,8 @@ int fselect(int s, fd_set *rmaster, fd_set *wmaster, fd_set *emaster, struct tim
/* selecting on anything other than stdin? */
if (s > 1)
fds_ready = select(s, &rset, &wset, &eset, &stv);
else
usleep(stv.tv_usec);
if (fds_ready > -1 && win_stdin_ready()) {
FD_SET(STDIN_FILENO, &rset);