summaryrefslogtreecommitdiffstats
path: root/base/process_util.h
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-29 17:51:51 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-29 17:51:51 +0000
commit05d4b0ae3154d410443f5ac5d6f74c970ce8d700 (patch)
tree32662f7f9bbb25f81123fb7e34b8bd177d39f161 /base/process_util.h
parent3216fbdae4d6887bc87240879530fb9f688d013b (diff)
downloadchromium_src-05d4b0ae3154d410443f5ac5d6f74c970ce8d700.zip
chromium_src-05d4b0ae3154d410443f5ac5d6f74c970ce8d700.tar.gz
chromium_src-05d4b0ae3154d410443f5ac5d6f74c970ce8d700.tar.bz2
Add routine to close file descriptors on exec
for linux and mac. See BUG 6598. Review URL: http://codereview.chromium.org/18801 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8892 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util.h')
-rw-r--r--base/process_util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/process_util.h b/base/process_util.h
index f00016e..ec858bd 100644
--- a/base/process_util.h
+++ b/base/process_util.h
@@ -67,9 +67,9 @@ ProcessHandle GetCurrentProcessHandle();
int GetProcId(ProcessHandle process);
#if defined(OS_POSIX)
-// Returns the maximum number of files that a process can have open.
-// Returns 0 on error.
-int GetMaxFilesOpenInProcess();
+// Sets all file descriptors to close on exec except for stdin, stdout
+// and stderr.
+void SetAllFDsToCloseOnExec();
#endif
#if defined(OS_WIN)