From 32636da1c247fa350dc5331a8d9a3f43acf7fd08 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Tue, 28 May 2013 18:12:18 +0200 Subject: erts: Fix bug in unlimited fd_set patch --- erts/emulator/sys/common/erl_poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'erts/emulator/sys/common') diff --git a/erts/emulator/sys/common/erl_poll.c b/erts/emulator/sys/common/erl_poll.c index 556e8d05ad..dffcf68df5 100644 --- a/erts/emulator/sys/common/erl_poll.c +++ b/erts/emulator/sys/common/erl_poll.c @@ -1335,7 +1335,7 @@ static int update_pollset(ErtsPollSet ps, int fd) { ErtsPollEvents events = ps->fds_status[fd].events; #ifdef _DARWIN_UNLIMITED_SELECT - if (FDS_SIZE(fd) > ps->select_fds_len) + if (FDS_SIZE(fd+1) > ps->select_fds_len) grow_select_fds(ps, fd); #endif if ((ERTS_POLL_EV_IN & events) -- cgit v1.2.3