summaryrefslogtreecommitdiffstats
path: root/tools/android
diff options
context:
space:
mode:
Diffstat (limited to 'tools/android')
-rw-r--r--tools/android/adb_reboot/adb_reboot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/android/adb_reboot/adb_reboot.c b/tools/android/adb_reboot/adb_reboot.c
index 48c5cbe..d414dd5 100644
--- a/tools/android/adb_reboot/adb_reboot.c
+++ b/tools/android/adb_reboot/adb_reboot.c
@@ -23,7 +23,7 @@ int main(int argc, char ** argv) {
/* child (daemon) continues */
int j;
- for (j = 0; j < getdtablesize(); j++)
+ for (j = 0; j < sysconf(_SC_OPEN_MAX); j++)
close(j);
setsid(); /* obtain a new process group */