Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3849)

Unified Diff: base/test/multiprocess_test_android.cc

Issue 349323003: [Android]: Replace calls to getdtablesize with sysconf(_SC_OPEN_MAX) in tools. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/android/adb_reboot/adb_reboot.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « no previous file | tools/android/adb_reboot/adb_reboot.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698