Skip to content

Commit

Permalink
Bash-5.1 patch 8: clean up FIFOs created by redirections in child pro…
Browse files Browse the repository at this point in the history
…cesses
  • Loading branch information
Chet Ramey committed May 4, 2021
1 parent b72f88d commit ce23728
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion execute_cmd.c
Expand Up @@ -5556,11 +5556,17 @@ execute_disk_command (words, redirects, command_line, pipe_in, pipe_out,
#if defined (PROCESS_SUBSTITUTION)
/* Try to remove named pipes that may have been created as the
result of redirections. */
unlink_fifo_list ();
unlink_all_fifos ();
#endif /* PROCESS_SUBSTITUTION */
exit (EXECUTION_FAILURE);
}

#if defined (PROCESS_SUBSTITUTION) && !defined (HAVE_DEV_FD)
/* This should only contain FIFOs created as part of redirection
expansion. */
unlink_all_fifos ();
#endif

if (async)
interactive = old_interactive;

Expand Down
2 changes: 1 addition & 1 deletion patchlevel.h
Expand Up @@ -25,6 +25,6 @@
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
looks for to find the patch level (for the sccs version string). */

#define PATCHLEVEL 7
#define PATCHLEVEL 8

#endif /* _PATCHLEVEL_H_ */

0 comments on commit ce23728

Please sign in to comment.