spawn: close all file descriptors before execve

No need to give whatever we're calling access to what we use
This commit is contained in:
moneromooo-monero 2018-10-16 18:08:36 +00:00
parent 5c85da5a73
commit c774392985
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 25 additions and 0 deletions

View file

@ -238,4 +238,6 @@ namespace tools
#ifdef _WIN32
std::string input_line_win();
#endif
void closefrom(int fd);
}