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/commands.cc | |
| 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/commands.cc')
| -rw-r--r-- | src/commands.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands.cc b/src/commands.cc index 6d6a55fc..e73b61ec 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -787,7 +787,7 @@ void define_command(const ParametersParser& parser, Context& context) { "pos_in_token", to_string(pos_in_token) } }; String output = ShellManager::instance().eval(shell_cmd, context, {}, - ShellManager::Flags::ReadOutput, + ShellManager::Flags::WaitForStdout, params, vars).first; return Completions{ 0_byte, pos_in_token, split(output, '\n', 0) }; }; |
