commit bash-20121102 snapshot

This commit is contained in:
Chet Ramey
2012-12-07 11:05:26 -05:00
parent 65ae7211a9
commit f37a40a432
26 changed files with 28654 additions and 251 deletions
+6 -2
View File
@@ -3701,7 +3701,8 @@ execute_null_command (redirects, pipe_in, pipe_out, async)
{
close_pipes (pipe_in, pipe_out);
#if defined (PROCESS_SUBSTITUTION) && defined (HAVE_DEV_FD)
unlink_fifo_list ();
if (pipe_out == NO_PIPE)
unlink_fifo_list ();
#endif
return (EXECUTION_SUCCESS);
}
@@ -3925,7 +3926,10 @@ execute_simple_command (simple_command, pipe_in, pipe_out, async, fds_to_close)
result = last_command_exit_value;
close_pipes (pipe_in, pipe_out);
#if defined (PROCESS_SUBSTITUTION) && defined (HAVE_DEV_FD)
unlink_fifo_list ();
/* Close /dev/fd file descriptors in the parent after forking the
last child in a (possibly one-element) pipeline. */
if (pipe_out == NO_PIPE) /* XXX */
unlink_fifo_list (); /* XXX */
#endif
command_line = (char *)NULL; /* don't free this. */
bind_lastarg ((char *)NULL);