]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-5.0 patch 4: the wait builtin without arguments only waits for known children...
authorChet Ramey <chet.ramey@case.edu>
Sat, 20 Apr 2019 18:24:28 +0000 (14:24 -0400)
committerChet Ramey <chet.ramey@case.edu>
Sat, 20 Apr 2019 18:24:28 +0000 (14:24 -0400)
jobs.c
patchlevel.h

diff --git a/jobs.c b/jobs.c
index ce2bdf248773c2610b0df05f3dac23abd6a10cf9..ae3c54c6dcf2f4d64ac76dbaeeaf6ff3595632dd 100644 (file)
--- a/jobs.c
+++ b/jobs.c
@@ -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. */
index e7e960c1a28cc30fc0a3fa8257bb326b4140442c..c059f0bd769b78ddf0bf0c5c1394e2ec8858d067 100644 (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_ */