v29.4-roots.1 · Commit 2: [PATCH 02/13] runtime: preserve shared operator controls
src/common/run_command.cpp
Before: src/common/run_command.cpp · After: src/common/run_command.cpp
File metadata
index 1f6d51b4f4be6a995145ea2f378e6eab07672eb8..110ec416353b6fffef367182a7ddeb375deef98a 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
|
@@ -24,7 +24,7 @@ UniValue RunCommandParseJSON(const std::string& str_command, const std::string&
|
|
| 24 |
|
| 25 |
if (str_command.empty()) return UniValue::VNULL;
|
| 26 |
|
| 27 |
-
auto c = sp::Popen(str_command, sp::input{sp::PIPE}, sp::output{sp::PIPE}, sp::error{sp::PIPE});
|
| 28 |
if (!str_std_in.empty()) {
|
| 29 |
c.send(str_std_in);
|
| 30 |
}
|
|
|
|
| 24 |
|
| 25 |
if (str_command.empty()) return UniValue::VNULL;
|
| 26 |
|
| 27 |
+
auto c = sp::Popen(str_command, sp::input{sp::PIPE}, sp::output{sp::PIPE}, sp::error{sp::PIPE}, sp::close_fds{true});
|
| 28 |
if (!str_std_in.empty()) {
|
| 29 |
c.send(str_std_in);
|
| 30 |
}
|