diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-16 18:08:36 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-17 09:31:46 +0000 |
commit | e4ce26c79fabc59f92c971f4f2af34bfb1aa9e94 (patch) | |
tree | 6ec79dee09f6ee6359a0a5a669d3a42d9295aed2 /src/common/util.h | |
parent | Merge pull request #4622 (diff) | |
download | monero-e4ce26c79fabc59f92c971f4f2af34bfb1aa9e94.tar.xz |
spawn: close all file descriptors before execve
No need to give whatever we're calling access to what we use
Diffstat (limited to '')
-rw-r--r-- | src/common/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index ce773bd38..e793a42b5 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -238,4 +238,6 @@ namespace tools #ifdef _WIN32 std::string input_line_win(); #endif + + void closefrom(int fd); } |