Skip to content
Bitcoin Roots

v31.1-roots.1 · Commit 6: [PATCH 06/17] feat(wallet): preserve Roots signing and spend controls on v31

src/common/run_command.cpp

Before: src/common/run_command.cpp · After: src/common/run_command.cpp

File metadata
index 86f89e17f23ee941df3bf615965e21ee3f09d1c0..07b1d925e1e56e6242f57f93249ad12f9ccd8a5c 100644

Download original patch · Release notes

Diff rows 1–8 of 8. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.

src/common/run_command.cpp CHANGED
@@ -25,7 +25,7 @@ UniValue RunCommandParseJSON(const std::vector<std::string>& cmd_args, const std
25
 
26
  if (cmd_args.empty()) return UniValue::VNULL;
27
 
28
- auto c = sp::Popen(cmd_args, sp::input{sp::PIPE}, sp::output{sp::PIPE}, sp::error{sp::PIPE});
29
  if (!str_std_in.empty()) {
30
  c.send(str_std_in);
31
  }
 
25
 
26
  if (cmd_args.empty()) return UniValue::VNULL;
27
 
28
+ auto c = sp::Popen(cmd_args, sp::input{sp::PIPE}, sp::output{sp::PIPE}, sp::error{sp::PIPE}, sp::close_fds{true});
29
  if (!str_std_in.empty()) {
30
  c.send(str_std_in);
31
  }