diff options
Diffstat (limited to 'Shell/AST.h')
-rw-r--r-- | Shell/AST.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Shell/AST.h b/Shell/AST.h index e016375db8..34399bf9d4 100644 --- a/Shell/AST.h +++ b/Shell/AST.h @@ -150,9 +150,15 @@ private: virtual bool is_fd_redirection() const override { return true; } }; +class Pipeline : public RefCounted<Pipeline> { +public: + pid_t pgid { -1 }; +}; + struct Command { Vector<String> argv; NonnullRefPtrVector<Redirection> redirections; + mutable RefPtr<Pipeline> pipeline; bool should_wait { true }; bool is_pipe_source { false }; bool should_notify_if_in_background { true }; @@ -190,7 +196,7 @@ public: } CommandValue(Vector<String> argv) - : m_command({ move(argv), {}, true, false, true }) + : m_command({ move(argv), {}, {}, true, false, true }) { } |