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:34 +0000 |
commit | c77439298591792601f8c3f4c94950ef6e2c542a (patch) | |
tree | af4aa7da9819246934bf30677c590ad55985de30 /src/common/util.h | |
parent | Merge pull request #4610 (diff) | |
download | monero-c77439298591792601f8c3f4c94950ef6e2c542a.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 'src/common/util.h')
-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); } |