Bash-5.0 patch 5: prevent optimizing forks away too aggressively

This commit is contained in:
Chet Ramey
2019-04-20 14:25:52 -04:00
parent 16c907aa3b
commit 41f5420db7
4 changed files with 27 additions and 4 deletions
+2
View File
@@ -2767,6 +2767,8 @@ execute_connection (command, asynchronous, pipe_in, pipe_out, fds_to_close)
((command->value.Connection->connector == OR_OR) &&
(exec_result != EXECUTION_SUCCESS)))
{
optimize_fork (command);
second = command->value.Connection->second;
if (ignore_return && second)
second->flags |= CMD_IGNORE_RETURN;