diff options
Diffstat (limited to 'src/socketengines/socketengine_poll.cpp')
-rw-r--r-- | src/socketengines/socketengine_poll.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/socketengines/socketengine_poll.cpp b/src/socketengines/socketengine_poll.cpp index a5e86ba82..c80593588 100644 --- a/src/socketengines/socketengine_poll.cpp +++ b/src/socketengines/socketengine_poll.cpp @@ -41,16 +41,7 @@ namespace void SocketEngine::Init() { - struct rlimit limits; - if (!getrlimit(RLIMIT_NOFILE, &limits)) - { - MAX_DESCRIPTORS = limits.rlim_cur; - } - else - { - // MAX_DESCRIPTORS is mainly used for display purposes, it's not a problem that getrlimit() failed - MAX_DESCRIPTORS = -1; - } + LookupMaxFds(); } void SocketEngine::Deinit() |