7 Bug-Reported-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
8 Bug-Reference-ID: <87lg0g8aiw.fsf@fifthhorseman.net>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2019-04/msg00076.html
13 In bash-5.0, the `wait' builtin without arguments waits for all children of the
14 shell. This includes children it `inherited' at shell invocation time. This
15 patch modifies the behavior to not wait for these inherited children, some
16 of which might be long-lived.
18 Patch (apply with `patch -p0'):
20 *** ../bash-5.0-patched/jobs.c 2018-12-06 11:44:34.000000000 -0500
21 --- jobs.c 2019-04-12 15:15:10.000000000 -0400
27 /* We don't want to wait indefinitely if we have stopped children. */
28 - /* XXX - should add a loop that goes through the list of process
29 - substitutions and waits for each proc in turn before this code. */
36 /* We don't want to wait indefinitely if we have stopped children. */
39 *** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.000000000 -0400
40 --- patchlevel.h 2016-10-01 11:01:28.000000000 -0400
43 looks for to find the patch level (for the sccs version string). */
45 ! #define PATCHLEVEL 3
47 #endif /* _PATCHLEVEL_H_ */
49 looks for to find the patch level (for the sccs version string). */
51 ! #define PATCHLEVEL 4
53 #endif /* _PATCHLEVEL_H_ */