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:34 +0000
commitc77439298591792601f8c3f4c94950ef6e2c542a (patch)
treeaf4aa7da9819246934bf30677c590ad55985de30 /src/common/util.h
parentMerge pull request #4610 (diff)
downloadmonero-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.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);
}