aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-16 18:08:36 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-17 09:31:46 +0000
commite4ce26c79fabc59f92c971f4f2af34bfb1aa9e94 (patch)
tree6ec79dee09f6ee6359a0a5a669d3a42d9295aed2 /src/common/util.h
parentMerge pull request #4622 (diff)
downloadmonero-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.h2
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);
}