diff options
Diffstat (limited to 'util/system/shellcommand.cpp')
| -rw-r--r-- | util/system/shellcommand.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/system/shellcommand.cpp b/util/system/shellcommand.cpp index 953bb134d12..b1989b5c8c3 100644 --- a/util/system/shellcommand.cpp +++ b/util/system/shellcommand.cpp @@ -14,7 +14,7 @@ #include <util/stream/pipe.h> #include <util/stream/str.h> #include <util/string/cast.h> -#include <util/system/info.h> +#include <util/system/info.h> #include <errno.h> @@ -721,7 +721,7 @@ void TShellCommand::TImpl::OnFork(TPipes& pipes, sigset_t oldmask, char* const* } if (CloseAllFdsOnExec) { - for (int fd = NSystemInfo::MaxOpenFiles(); fd > STDERR_FILENO; --fd) { + for (int fd = NSystemInfo::MaxOpenFiles(); fd > STDERR_FILENO; --fd) { fcntl(fd, F_SETFD, FD_CLOEXEC); } } |
