Index: base/test/multiprocess_test_android.cc |
diff --git a/base/test/multiprocess_test_android.cc b/base/test/multiprocess_test_android.cc |
index 126d8b11e0a30fd35feda07c51da0ffa37f75934..6eb30b87935048dd41bd5fcb38f5b53f58128b85 100644 |
--- a/base/test/multiprocess_test_android.cc |
+++ b/base/test/multiprocess_test_android.cc |
@@ -46,7 +46,7 @@ ProcessHandle SpawnMultiProcessTestChild(const std::string& procname, |
// Keep standard FDs (stdin, stdout, stderr, etc.) open since this |
// is not meant to spawn a daemon. |
int base = GlobalDescriptors::kBaseDescriptor; |
- for (int fd = base; fd < getdtablesize(); ++fd) { |
+ for (int fd = base; fd < sysconf(_SC_OPEN_MAX); ++fd) { |
if (fds_to_keep_open.find(fd) == fds_to_keep_open.end()) { |
close(fd); |
} |