diff --git a/src/shell_manager.cc b/src/shell_manager.cc index 357724b1..9404f97a 100644 --- a/src/shell_manager.cc +++ b/src/shell_manager.cc @@ -171,6 +171,8 @@ std::pair ShellManager::eval( close(child_stdin.write_fd()); move(child_stdin.read_fd(), 0); } + else + close(0); close(child_stdout.read_fd()); move(child_stdout.write_fd(), 1);