diff options
Diffstat (limited to 'erts/emulator/sys')
-rw-r--r-- | erts/emulator/sys/common/erl_poll.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |