From: Chet Ramey Date: Sat, 20 Apr 2019 18:24:28 +0000 (-0400) Subject: Bash-5.0 patch 4: the wait builtin without arguments only waits for known children... X-Git-Tag: bash-5.1-alpha~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=16c907aa3bb427618733e5a6f2f4e2fc5a3488d3;p=thirdparty%2Fbash.git Bash-5.0 patch 4: the wait builtin without arguments only waits for known children the shell started --- diff --git a/jobs.c b/jobs.c index ce2bdf248..ae3c54c6d 100644 --- 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. */ diff --git a/patchlevel.h b/patchlevel.h index e7e960c1a..c059f0bd7 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 3 +#define PATCHLEVEL 4 #endif /* _PATCHLEVEL_H_ */