Index: base/process_util_posix.cc |
=================================================================== |
--- base/process_util_posix.cc (revision 17958) |
+++ base/process_util_posix.cc (working copy) |
@@ -104,6 +104,9 @@ |
#elif defined(OS_MACOSX) |
static const rlim_t kSystemDefaultMaxFds = 256; |
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; |
@@ -180,7 +183,7 @@ |
void SetAllFDsToCloseOnExec() { |
#if defined(OS_LINUX) |
const char fd_dir[] = "/proc/self/fd"; |
-#elif defined(OS_MACOSX) |
+#elif defined(OS_MACOSX) || defined(OS_OPENBSD) |
const char fd_dir[] = "/dev/fd"; |
#endif |
ScopedDIR dir_closer(opendir(fd_dir)); |