Shell: Wait for the parent to deal with the PGID stuff before execvp()

This commit is contained in:
AnotherTest 2020-08-12 01:14:34 +04:30 committed by Andreas Kling
commit 2b51250863
Notes: sideshowbarker 2024-07-19 03:43:55 +09:00
2 changed files with 35 additions and 0 deletions

View file

@ -53,6 +53,8 @@ public:
dbg() << "Command \"" << m_cmd << "\" finished in " << elapsed << " ms";
}
#endif
if (m_pipeline)
m_pipeline = nullptr;
}
pid_t pgid() const { return m_pgid; }