mirror of
https://github.com/nmap/nmap.git
synced 2026-10-24 12:53:49 +00:00
Check for error from fselect()
This commit is contained in:
parent
954a712666
commit
d0caba8b42
1 changed files with 7 additions and 0 deletions
|
|
@ -342,6 +342,13 @@ int ncat_listen()
|
|||
|
||||
fds_ready = fselect(client_fdlist.fdmax + 1, &readfds, &writefds, NULL, tvp);
|
||||
|
||||
if (fds_ready < 0) {
|
||||
int e = socket_errno();
|
||||
if (e != EINTR) {
|
||||
bye("fselect error %d: %s", e, socket_strerror(e));
|
||||
}
|
||||
}
|
||||
|
||||
if (o.debug > 1)
|
||||
logdebug("select returned %d fds ready\n", fds_ready);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue