diff options
author | pvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-25 23:54:54 +0000 |
---|---|---|
committer | pvalchev@google.com <pvalchev@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-25 23:54:54 +0000 |
commit | 8d5788267bcd591842932fd8761813c7fac3d987 (patch) | |
tree | f585dbb8cc13a244e32cc76ee4a24e89d33bab57 /base/process_util_posix.cc | |
parent | 93f0c77c33ac138c30a019a6c67de53d23810db0 (diff) | |
download | chromium_src-8d5788267bcd591842932fd8761813c7fac3d987.zip chromium_src-8d5788267bcd591842932fd8761813c7fac3d987.tar.gz chromium_src-8d5788267bcd591842932fd8761813c7fac3d987.tar.bz2 |
OpenBSD/FreeBSD ifdefs and GYP changes for base/
Based on original work by Sprewell and Ben Laurie on FreeBSD port
Review URL: http://codereview.chromium.org/548129
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37063 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util_posix.cc')
-rw-r--r-- | base/process_util_posix.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/process_util_posix.cc b/base/process_util_posix.cc index d92a4fa..c6759f9 100644 --- a/base/process_util_posix.cc +++ b/base/process_util_posix.cc @@ -182,6 +182,9 @@ void CloseSuperfluousFds(const base::InjectiveMultimap& saved_mapping) { #elif defined(OS_FREEBSD) static const rlim_t kSystemDefaultMaxFds = 8192; static const char fd_dir[] = "/dev/fd"; +#elif defined(OS_OPENBSD) + static const rlim_t kSystemDefaultMaxFds = 256; + static const char fd_dir[] = "/dev/fd"; #endif std::set<int> saved_fds; |