summaryrefslogtreecommitdiffstats
path: root/base/process_util_posix.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-17 14:15:08 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-17 14:15:08 +0000
commita120891ec61a84cbcde5489ce26f92583689ff4e (patch)
treec4cd4d09a3cbe772616c5d80b4b5a15ece820c9b /base/process_util_posix.cc
parentf55039ae010de2400e43ffec71ab1f36bac8f2f6 (diff)
downloadchromium_src-a120891ec61a84cbcde5489ce26f92583689ff4e.zip
chromium_src-a120891ec61a84cbcde5489ce26f92583689ff4e.tar.gz
chromium_src-a120891ec61a84cbcde5489ce26f92583689ff4e.tar.bz2
solaris: minor ifdefs
base/process_util_posix.cc, base/third_party/nspr/prcpucfg.h, third_party/npapi/bindings/npapi.h: added alternate Solaris OS choice BUG=30101 TEST=compiles Patch by James Choi <jchoi42@pha.jhu.edu>. Review URL: http://codereview.chromium.org/606069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39220 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util_posix.cc')
-rw-r--r--base/process_util_posix.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/base/process_util_posix.cc b/base/process_util_posix.cc
index a29304d..cca07dd 100644
--- a/base/process_util_posix.cc
+++ b/base/process_util_posix.cc
@@ -180,6 +180,9 @@ void CloseSuperfluousFds(const base::InjectiveMultimap& saved_mapping) {
#elif defined(OS_MACOSX)
static const rlim_t kSystemDefaultMaxFds = 256;
static const char fd_dir[] = "/dev/fd";
+#elif defined(OS_SOLARIS)
+ static const rlim_t kSystemDefaultMaxFds = 8192;
+ static const char fd_dir[] = "/dev/fd";
#elif defined(OS_FREEBSD)
static const rlim_t kSystemDefaultMaxFds = 8192;
static const char fd_dir[] = "/dev/fd";
@@ -266,7 +269,7 @@ void CloseSuperfluousFds(const base::InjectiveMultimap& saved_mapping) {
void SetAllFDsToCloseOnExec() {
#if defined(OS_LINUX)
const char fd_dir[] = "/proc/self/fd";
-#elif defined(OS_MACOSX) || defined(OS_FREEBSD)
+#elif defined(OS_MACOSX) || defined(OS_FREEBSD) || defined(OS_SOLARIS)
const char fd_dir[] = "/dev/fd";
#endif
ScopedDIR dir_closer(opendir(fd_dir));