From: Chet Ramey Date: Tue, 4 May 2021 18:31:53 +0000 (-0400) Subject: Bash-5.1 patch 8: clean up FIFOs created by redirections in child processes X-Git-Tag: bash-5.2-alpha~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ce23728687ce9e584333367075c9deef413553fa;p=thirdparty%2Fbash.git Bash-5.1 patch 8: clean up FIFOs created by redirections in child processes --- diff --git a/execute_cmd.c b/execute_cmd.c index d2a0dd71c..90129e066 100644 --- a/execute_cmd.c +++ b/execute_cmd.c @@ -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; diff --git a/patchlevel.h b/patchlevel.h index c5ed66ab6..10fde2eee 100644 --- a/patchlevel.h +++ b/patchlevel.h @@ -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_ */