summaryrefslogtreecommitdiff
path: root/mobicore
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-06-16 15:36:30 -0700
committerAndreas Schneider <asn@cryptomilk.org>2015-07-08 12:34:58 +0200
commitd33aba68b5aa92b7350fad22730994e695ffe470 (patch)
tree9947072c77032ffb5b7a0788e38c03dde7a09886 /mobicore
parenta8973b8b9111238ec1b3db3509ea9ee072fa090e (diff)
downloadandroid_hardware_samsung_slsi_exynos5430-d33aba68b5aa92b7350fad22730994e695ffe470.tar.gz
android_hardware_samsung_slsi_exynos5430-d33aba68b5aa92b7350fad22730994e695ffe470.tar.xz
android_hardware_samsung_slsi_exynos5430-d33aba68b5aa92b7350fad22730994e695ffe470.zip
Switch from getdtablesize(3) to sysconf(3).
Change-Id: I4741ea034fdadf1c6cd07c36aee3156f2415fae2
Diffstat (limited to 'mobicore')
-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 */