Fix logic error in shell manager

This commit is contained in:
Maxime Coste 2014-12-04 13:58:02 +00:00
parent a51dd737ea
commit 176358f6b7

View File

@ -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);
}