summaryrefslogtreecommitdiff
path: root/mobicore/daemon/Daemon/MobiCoreDriverDaemon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mobicore/daemon/Daemon/MobiCoreDriverDaemon.cpp')
-rw-r--r--mobicore/daemon/Daemon/MobiCoreDriverDaemon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mobicore/daemon/Daemon/MobiCoreDriverDaemon.cpp b/mobicore/daemon/Daemon/MobiCoreDriverDaemon.cpp
index 40b46dc..0012e5a 100644
--- a/mobicore/daemon/Daemon/MobiCoreDriverDaemon.cpp
+++ b/mobicore/daemon/Daemon/MobiCoreDriverDaemon.cpp
@@ -1349,7 +1349,7 @@ int main(int argc, char *args[])
// obtain a new process group */
setsid();
/* close all descriptors */
- for (i = getdtablesize(); i >= 0; --i) {
+ for (i = sysconf(_SC_OPEN_MAX); i >= 0; --i) {
close(i);
}
// STDIN, STDOUT and STDERR should all point to /dev/null */