7 Bug-Reported-by: Jonas Alfredsson <jonas.alfredsson@protonmail.com>
8 Bug-Reference-ID: <LjAfZaEuZncr2RaqhSSfcaiXdkuK6kdEYxshP3LApXbgMVQzggMGyWHO9knVkXicW2fP-ibsipJ_GZ-YaJRm96Rsozf6PgFmPsljRCtflls=@protonmail.com>
9 Bug-Reference-URL: https://lists.gnu.org/archive/html/bug-bash/2021-05/msg00059.html
13 If `wait -n' is interrupted by a trapped signal other than SIGINT, it does
14 not completely clean up state, and that can prevent subsequent calls to
15 `wait -n' from working correctly.
17 Patch (apply with `patch -p0'):
19 *** ../bash-5.1-patched/builtins/wait.def 2020-12-16 17:13:12.000000000 -0500
20 --- builtins/wait.def 2021-11-17 10:25:15.000000000 -0500
25 ! int status, code, opt, nflag, wflags;
31 ! int status, code, opt, nflag;
32 ! volatile int wflags;
38 status = 128 + wait_signal_received;
39 wait_sigint_cleanup ();
40 + if (wflags & JWAIT_WAITING)
45 *** ../bash-5.1/patchlevel.h 2020-06-22 14:51:03.000000000 -0400
46 --- patchlevel.h 2020-10-01 11:01:28.000000000 -0400
49 looks for to find the patch level (for the sccs version string). */
51 ! #define PATCHLEVEL 9
53 #endif /* _PATCHLEVEL_H_ */
55 looks for to find the patch level (for the sccs version string). */
57 ! #define PATCHLEVEL 10
59 #endif /* _PATCHLEVEL_H_ */