diff --git a/Shell/Shell.cpp b/Shell/Shell.cpp index fda9540bd3..a1249786c5 100644 --- a/Shell/Shell.cpp +++ b/Shell/Shell.cpp @@ -816,7 +816,7 @@ RefPtr Shell::run_command(const AST::Command& command) } pid_t pgid = is_first ? child : (command.pipeline ? command.pipeline->pgid : child); - if ((!m_is_subshell && command.should_wait) || command.pipeline) { + if (!m_is_subshell || command.pipeline) { if (setpgid(child, pgid) < 0 && m_is_interactive) perror("setpgid");