Bash-5.0 patch 4: the wait builtin without arguments only waits for known children the shell started

This commit is contained in:
Chet Ramey
2019-04-20 14:24:28 -04:00
parent fcf6ae7d06
commit 16c907aa3b
2 changed files with 2 additions and 4 deletions
+1 -3
View File
@@ -2488,10 +2488,8 @@ wait_for_background_pids ()
r = wait_for (last_procsub_child->pid);
wait_procsubs ();
reap_procsubs ();
#if 1
#if 0
/* We don't want to wait indefinitely if we have stopped children. */
/* XXX - should add a loop that goes through the list of process
substitutions and waits for each proc in turn before this code. */
if (any_stopped == 0)
{
/* Check whether or not we have any unreaped children. */
+1 -1
View File
@@ -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 3
#define PATCHLEVEL 4
#endif /* _PATCHLEVEL_H_ */