diff options
author | Jose <pepone@users.noreply.github.com> | 2019-07-02 12:02:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-02 12:02:08 +0200 |
commit | d44f1fb14cbdae099fcf7dafd0d247a4555a02bc (patch) | |
tree | 29c7a1b86b6a5944097318ed2b8cd2ea9137b9dc /cpp/src/IceGrid/Activator.cpp | |
parent | Wait 60s for the process controller to start (needed for Android) (diff) | |
download | ice-d44f1fb14cbdae099fcf7dafd0d247a4555a02bc.tar.bz2 ice-d44f1fb14cbdae099fcf7dafd0d247a4555a02bc.tar.xz ice-d44f1fb14cbdae099fcf7dafd0d247a4555a02bc.zip |
Check sysconf errors Close #418 (#420)
Diffstat (limited to 'cpp/src/IceGrid/Activator.cpp')
-rw-r--r-- | cpp/src/IceGrid/Activator.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/IceGrid/Activator.cpp b/cpp/src/IceGrid/Activator.cpp index 46832e71757..9c568f75ef5 100644 --- a/cpp/src/IceGrid/Activator.cpp +++ b/cpp/src/IceGrid/Activator.cpp @@ -743,6 +743,11 @@ Activator::activate(const string& name, // of the newly created pipe. // int maxFd = static_cast<int>(sysconf(_SC_OPEN_MAX)); + if(maxFd <= 0) + { + maxFd = INT_MAX; + } + for(int fd = 3; fd < maxFd; ++fd) { if(fd != fds[1] && fd != errorFds[1]) |