7 Bug-Reported-by: Grisha Levit <grishalevit@gmail.com>
8 Bug-Reference-ID: <CAMu=BroHapG1AS3xB5SQaCX2XKu=-E2Ob9uW6LNuHvd=YohrDw@mail.gmail.com>
9 Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2019-02/msg00067.html
13 Running `exec' when job control was disabled, even temporarily, but after it
14 had been initialized, could leave the terminal in the wrong process group for
17 Patch (apply with `patch -p0'):
19 *** ../bash-5.0-patched/jobs.c 2018-12-06 11:44:34.000000000 -0500
20 --- jobs.c 2019-04-12 15:15:10.000000000 -0400
26 ! terminate_stopped_jobs ();
28 ! if (original_pgrp >= 0)
29 ! give_terminal_to (original_pgrp, 1);
32 ! if (original_pgrp >= 0)
33 ! setpgid (0, original_pgrp);
39 ! terminate_stopped_jobs ();
41 ! if (original_pgrp >= 0 && terminal_pgrp != original_pgrp)
42 ! give_terminal_to (original_pgrp, 1);
44 ! if (original_pgrp >= 0 && setpgid (0, original_pgrp) == 0)
45 ! shell_pgrp = original_pgrp;
48 *** ../bash-5.0/patchlevel.h 2016-06-22 14:51:03.000000000 -0400
49 --- patchlevel.h 2016-10-01 11:01:28.000000000 -0400
52 looks for to find the patch level (for the sccs version string). */
54 ! #define PATCHLEVEL 6
56 #endif /* _PATCHLEVEL_H_ */
58 looks for to find the patch level (for the sccs version string). */
60 ! #define PATCHLEVEL 7
62 #endif /* _PATCHLEVEL_H_ */