summaryrefslogtreecommitdiff
path: root/src/poll.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2011-02-03 08:46:04 +0100
committerMartin Sustrik <sustrik@250bpm.com>2011-02-03 08:46:04 +0100
commitca1acc340c256a35f0db58805bba7cb337d9a5a3 (patch)
treebd9f55ea6e1008c5ebd98892bc5b128d4bcfef73 /src/poll.hpp
parent1e0302633ea10766d21b2a70d62e6f16440c18d4 (diff)
RLIMIT_NOFILE not used in poll_t anymore
The problem was that RLIMIT_NOFILE can be set to RLIM_INIFINITY (and that appears to be default on AIX) which caused 0MQ to fail. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/poll.hpp')
-rw-r--r--src/poll.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/poll.hpp b/src/poll.hpp
index bc5fb5c..82713db 100644
--- a/src/poll.hpp
+++ b/src/poll.hpp
@@ -76,7 +76,8 @@ namespace zmq
};
// This table stores data for registered descriptors.
- std::vector <fd_entry_t> fd_table;
+ typedef std::vector <fd_entry_t> fd_table_t;
+ fd_table_t fd_table;
// Pollset to pass to the poll function.
typedef std::vector <pollfd> pollset_t;