From 409d804ee85074eed8bd94f616bc23284bdf5eb9 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 8 Jun 2015 22:42:51 +0100 Subject: 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. --- src/shell_manager.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shell_manager.hh') 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 eval(StringView cmdline, const Context& context, StringView input = {}, - Flags flags = Flags::ReadOutput, + Flags flags = Flags::WaitForStdout, ConstArrayView params = {}, const EnvVarMap& env_vars = EnvVarMap{}); -- cgit v1.2.3