v29.4-roots.2 · Commit 2: [PATCH 02/21] 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. The two line-number columns refer to before and after.
src/common/run_command.cpp
CHANGED
|
@@ -24,7 +24,7 @@ UniValue RunCommandParseJSON(const std::string& str_command, const std::string&
|
|
|
24
24
|
|
|
25
25
|
if (str_command.empty()) return UniValue::VNULL;
|
|
26
26
|
|
|
27
|
-
auto c = sp::Popen(str_command, sp::input{sp::PIPE}, sp::output{sp::PIPE}, sp::error{sp::PIPE});
|
|
27
|
+
auto c = sp::Popen(str_command, sp::input{sp::PIPE}, sp::output{sp::PIPE}, sp::error{sp::PIPE}, sp::close_fds{true});
|
|
28
28
|
if (!str_std_in.empty()) {
|
|
29
29
|
c.send(str_std_in);
|
|
30
30
|
}
|