summaryrefslogtreecommitdiff
path: root/erts/epmd
diff options
context:
space:
mode:
authorLukas Larsson <lukas@erlang.org>2020-04-17 09:56:11 +0200
committerLukas Larsson <lukas@erlang.org>2020-04-17 09:56:11 +0200
commit5bd23aa6ac950dc0613e7353cb4b56019b12c2b7 (patch)
tree24ff6d739028e6820d10bce13ddcdc075cbe4797 /erts/epmd
parentffb26e566c0cfc963883bb3e846e68d7a7c71cb0 (diff)
downloaderlang-5bd23aa6ac950dc0613e7353cb4b56019b12c2b7.tar.gz
epmd: Do not check max fd size on windows
Diffstat (limited to 'erts/epmd')
-rw-r--r--erts/epmd/src/epmd_srv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/epmd/src/epmd_srv.c b/erts/epmd/src/epmd_srv.c
index c37ca197f5..339df3bccf 100644
--- a/erts/epmd/src/epmd_srv.c
+++ b/erts/epmd/src/epmd_srv.c
@@ -1054,11 +1054,13 @@ static int conn_open(EpmdVars *g,int fd)
int i;
Connection *s;
+#if !defined(__WIN32__)
if (fd >= FD_SETSIZE) {
dbg_tty_printf(g,0,"fd does not fit in fd_set fd=%d, FD_SETSIZE=%d",fd, FD_SETSIZE);
close(fd);
return EPMD_FALSE;
}
+#endif
for (i = 0; i < g->max_conn; i++) {
if (g->conn[i].open == EPMD_FALSE) {