Shell: Wait for the rest of the members of a pipeline when one exits

Assuming we were blocking on one to begin with.
This commit is contained in:
AnotherTest 2020-10-28 17:45:17 +03:30 committed by Andreas Kling
commit 6e2a383f25
Notes: sideshowbarker 2024-07-19 01:39:45 +09:00
2 changed files with 16 additions and 0 deletions

View file

@ -89,6 +89,7 @@ public:
bool run_builtin(const AST::Command&, const NonnullRefPtrVector<AST::Rewiring>&, int& retval);
bool has_builtin(const StringView&) const;
void block_on_job(RefPtr<Job>);
void block_on_pipeline(RefPtr<AST::Pipeline>);
String prompt() const;
static String expand_tilde(const String&);