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