summaryrefslogtreecommitdiffstats
path: root/base/process_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/process_util.h')
-rw-r--r--base/process_util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/process_util.h b/base/process_util.h
index a06f689..2eb516d 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -223,6 +223,10 @@ BASE_EXPORT extern const char kProcSelfExe[];
// Returns the ID for the parent of the given process.
BASE_EXPORT ProcessId GetParentProcessId(ProcessHandle process);
+// Returns the maximum number of file descriptors that can be open by a process
+// at once. If the number is unavailable, a conservative best guess is returned.
+size_t GetMaxFds();
+
// Close all file descriptors, except those which are a destination in the
// given multimap. Only call this function in a child process where you know
// that there aren't any other threads.