commit bash-20180824 snapshot

This commit is contained in:
Chet Ramey
2018-08-27 10:29:25 -04:00
parent c2ccaa219a
commit 3b481dd380
2 changed files with 10 additions and 2 deletions
+2 -2
View File
@@ -2438,7 +2438,7 @@ static void
lastpipe_cleanup (s)
int s;
{
unfreeze_jobs_list ();
set_jobs_list_frozen (s);
}
static int
@@ -2565,7 +2565,7 @@ execute_pipeline (command, asynchronous, pipe_in, pipe_out, fds_to_close)
lastpipe_flag = 1;
old_frozen = freeze_jobs_list ();
lastpipe_jid = stop_pipeline (0, (COMMAND *)NULL); /* XXX */
add_unwind_protect (lastpipe_cleanup, lastpipe_jid);
add_unwind_protect (lastpipe_cleanup, old_frozen);
}
if (cmd)
cmd->flags |= CMD_LASTPIPE;