aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2013-05-28 18:12:18 +0200
committerSverker Eriksson <[email protected]>2013-05-28 18:12:18 +0200
commit32636da1c247fa350dc5331a8d9a3f43acf7fd08 (patch)
treed092c31af9f57f18afa2f0f469ab37349e14097a /erts/emulator/sys
parent03ad5eab59f7ca51099d7ccc60b27effc4d42383 (diff)
downloadotp-32636da1c247fa350dc5331a8d9a3f43acf7fd08.tar.gz
otp-32636da1c247fa350dc5331a8d9a3f43acf7fd08.tar.bz2
otp-32636da1c247fa350dc5331a8d9a3f43acf7fd08.zip
erts: Fix bug in unlimited fd_set patch
Diffstat (limited to 'erts/emulator/sys')
-rw-r--r--erts/emulator/sys/common/erl_poll.c2
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)