From c77439298591792601f8c3f4c94950ef6e2c542a Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Tue, 16 Oct 2018 18:08:36 +0000 Subject: spawn: close all file descriptors before execve No need to give whatever we're calling access to what we use --- src/common/util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/common/util.h') 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); } -- cgit v1.2.3