mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-13 07:00:49 +02:00
commit bash-20121102 snapshot
This commit is contained in:
+6
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user