diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-06-08 22:42:51 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-06-08 22:42:51 +0100 |
| commit | 409d804ee85074eed8bd94f616bc23284bdf5eb9 (patch) | |
| tree | ac725706d8155d1141be6fb366aa1840bb2f9beb /src/shell_manager.hh | |
| parent | 6cb7e20d54984494d98589213119a9e2accb0317 (diff) | |
Do not close stderr/stdout before program finish
Programs like grep called in '$' command will fail due to SIGPIPE
for example. So we need to keep the pipe open.
Diffstat (limited to 'src/shell_manager.hh')
| -rw-r--r-- | src/shell_manager.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shell_manager.hh b/src/shell_manager.hh index 36c74a3a..586cf59b 100644 --- a/src/shell_manager.hh +++ b/src/shell_manager.hh @@ -24,12 +24,12 @@ public: enum class Flags { None = 0, - ReadOutput = 1 + WaitForStdout = 1 }; std::pair<String, int> eval(StringView cmdline, const Context& context, StringView input = {}, - Flags flags = Flags::ReadOutput, + Flags flags = Flags::WaitForStdout, ConstArrayView<String> params = {}, const EnvVarMap& env_vars = EnvVarMap{}); |
