mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +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:
parent
71033d2812
commit
9f335c6bdb
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue