]>
Commit | Line | Data |
---|---|---|
415fb8b5 PM |
1 | BASH PATCH REPORT |
2 | ================= | |
3 | ||
4 | Bash-Release: 5.0 | |
5 | Patch-ID: bash50-004 | |
6 | ||
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 | |
10 | ||
11 | Bug-Description: | |
12 | ||
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. | |
17 | ||
18 | Patch (apply with `patch -p0'): | |
19 | ||
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 | |
22 | *************** | |
23 | *** 2489,2496 **** | |
24 | wait_procsubs (); | |
25 | reap_procsubs (); | |
26 | ! #if 1 | |
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. */ | |
30 | if (any_stopped == 0) | |
31 | { | |
32 | --- 2490,2495 ---- | |
33 | wait_procsubs (); | |
34 | reap_procsubs (); | |
35 | ! #if 0 | |
36 | /* We don't want to wait indefinitely if we have stopped children. */ | |
37 | if (any_stopped == 0) | |
38 | { | |
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 | |
41 | *************** | |
42 | *** 26,30 **** | |
43 | looks for to find the patch level (for the sccs version string). */ | |
44 | ||
45 | ! #define PATCHLEVEL 3 | |
46 | ||
47 | #endif /* _PATCHLEVEL_H_ */ | |
48 | --- 26,30 ---- | |
49 | looks for to find the patch level (for the sccs version string). */ | |
50 | ||
51 | ! #define PATCHLEVEL 4 | |
52 | ||
53 | #endif /* _PATCHLEVEL_H_ */ |