summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Lucina <mato@kotelna.sk>2010-09-20 16:45:25 +0200
committerMartin Sustrik <sustrik@250bpm.com>2010-09-20 16:45:25 +0200
commit1abfc92d265bce4f60d63cd302319c451d2c451a (patch)
tree5d51c74dbc497f2dcf4b6cc6761f12ba6cab86be /src
parent328c92a0a70b98b4a3bf09132bd8f8041e4c8628 (diff)
minor problem in zmq_poll (select version) fixed
Diffstat (limited to 'src')
-rw-r--r--src/zmq.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zmq.cpp b/src/zmq.cpp
index e93f8b7..c30a6aa 100644
--- a/src/zmq.cpp
+++ b/src/zmq.cpp
@@ -539,7 +539,7 @@ int zmq_poll (zmq_pollitem_t *items_, int nitems_, long timeout_)
memcpy (&inset, &pollset_in, sizeof (fd_set));
memcpy (&outset, &pollset_out, sizeof (fd_set));
memcpy (&errset, &pollset_err, sizeof (fd_set));
- int rc = select (maxfd, &inset, &outset, &errset,
+ int rc = select (maxfd + 1, &inset, &outset, &errset,
first_pass ? &zero_timeout : (timeout_ < 0 ? NULL : &timeout));
#if defined ZMQ_HAVE_WINDOWS
wsa_assert (rc != SOCKET_ERROR);