Revert "Refactor to avoid nonnull checks on "this" pointer."
This reverts commit 0008bdea02
.
This patch introduced a regression. Calling FOO=$(...) in zsh hangs
indefinitely and has to be killed forcefully.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
@@ -134,7 +134,7 @@ tty_min::kill_pgrp (int sig)
|
||||
for (unsigned i = 0; i < pids.npids; i++)
|
||||
{
|
||||
_pinfo *p = pids[i];
|
||||
if (!p || !p->exists () || p->ctty != ntty || p->pgid != pgid)
|
||||
if (!p->exists () || p->ctty != ntty || p->pgid != pgid)
|
||||
continue;
|
||||
if (p == myself)
|
||||
killself = sig != __SIGSETPGRP && !exit_state;
|
||||
|
Reference in New Issue
Block a user