diff --git a/ncat/ncat_listen.c b/ncat/ncat_listen.c index 2064eaa42..ead17cbb4 100644 --- a/ncat/ncat_listen.c +++ b/ncat/ncat_listen.c @@ -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);