Revert "Merge bitcoin/bitcoin#32343: common: Close non-std fds before exec in RunCommandJSON"

This reverts commit 31d3eebfb9, reversing
changes made to 4b26ca0e2f.
This commit is contained in:
MarcoFalke
2025-07-25 15:32:48 +02:00
parent 31d3eebfb9
commit faa1c3e80d
2 changed files with 1 additions and 59 deletions

View File

@@ -24,7 +24,7 @@ UniValue RunCommandParseJSON(const std::string& str_command, const std::string&
if (str_command.empty()) return UniValue::VNULL;
auto c = sp::Popen(str_command, sp::input{sp::PIPE}, sp::output{sp::PIPE}, sp::error{sp::PIPE}, sp::close_fds{true});
auto c = sp::Popen(str_command, sp::input{sp::PIPE}, sp::output{sp::PIPE}, sp::error{sp::PIPE});
if (!str_std_in.empty()) {
c.send(str_std_in);
}