From 176358f6b7c1b65d0578423cf78c52f5c253f571 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 4 Dec 2014 13:58:02 +0000 Subject: [PATCH] Fix logic error in shell manager --- src/shell_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shell_manager.cc b/src/shell_manager.cc index afc43324..0888f99a 100644 --- a/src/shell_manager.cc +++ b/src/shell_manager.cc @@ -75,7 +75,7 @@ String ShellManager::pipe(StringView input, FDWatcher stdout_watcher{read_pipe[0], pipe_reader(output)}; FDWatcher stderr_watcher{error_pipe[0], pipe_reader(error)}; - while (not stdout_watcher.closed() and not stderr_watcher.closed()) + while (not stdout_watcher.closed() or not stderr_watcher.closed()) EventManager::instance().handle_next_events(EventMode::Urgent); }