commit bash-20110701 snapshot

This commit is contained in:
Chet Ramey
2012-01-09 08:22:28 -05:00
parent 987daba4c4
commit adf2f60963
22 changed files with 22600 additions and 12 deletions
+4
View File
@@ -2271,6 +2271,7 @@ execute_pipeline (command, asynchronous, pipe_in, pipe_out, fds_to_close)
if (ignore_return && cmd)
cmd->flags |= CMD_IGNORE_RETURN;
#if defined (JOB_CONTROL)
lastpipe_flag = 0;
begin_unwind_frame ("lastpipe-exec");
lstdin = -1;
@@ -2294,11 +2295,14 @@ execute_pipeline (command, asynchronous, pipe_in, pipe_out, fds_to_close)
}
if (prev >= 0)
add_unwind_protect (close, prev);
#endif
exec_result = execute_command_internal (cmd, asynchronous, prev, pipe_out, fds_to_close);
#if defined (JOB_CONTROL)
if (lstdin > 0)
restore_stdin (lstdin);
#endif
if (prev >= 0)
close (prev);