diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-12-14 12:13:14 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-12-14 12:13:14 +0100 |
| commit | 7624ddd6d82230be5d9df0f74b1b98b761eed677 (patch) | |
| tree | 136a17764648a619745ed571b406920d27528c4e /executor/executor.cc | |
| parent | fe7127be71799d60a3f6adc9f357839882a27968 (diff) | |
executor: move setrlimit from setup_control_pipes to bsd os_init
This broke fuchsia build. We need setrlimit only for bsd.
Diffstat (limited to 'executor/executor.cc')
| -rw-r--r-- | executor/executor.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/executor/executor.cc b/executor/executor.cc index d6e7b75b3..6569326d3 100644 --- a/executor/executor.cc +++ b/executor/executor.cc @@ -12,7 +12,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <sys/resource.h> #include <time.h> #include <unistd.h> @@ -423,11 +422,6 @@ int main(int argc, char** argv) void setup_control_pipes() { - // Makes sure the file descriptor limit is sufficient. - struct rlimit rlim; - rlim.rlim_cur = rlim.rlim_max = kMaxFd; - setrlimit(RLIMIT_NOFILE, &rlim); - if (dup2(0, kInPipeFd) < 0) fail("dup2(0, kInPipeFd) failed"); if (dup2(1, kOutPipeFd) < 0) |
