Bash-5.1 patch 10: fix for wait -n being interrupted by a trapped signal

This commit is contained in:
Chet Ramey
2021-11-17 16:45:23 -05:00
parent fed42742e0
commit 910fcdc415
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -111,7 +111,8 @@ int
wait_builtin (list)
WORD_LIST *list;
{
int status, code, opt, nflag, wflags;
int status, code, opt, nflag;
volatile int wflags;
char *vname;
SHELL_VAR *pidvar;
struct procstat pstat;
@@ -180,6 +181,8 @@ wait_builtin (list)
last_command_exit_signal = wait_signal_received;
status = 128 + wait_signal_received;
wait_sigint_cleanup ();
if (wflags & JWAIT_WAITING)
unset_waitlist ();
WAIT_RETURN (status);
}
+1 -1
View File
@@ -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 9
#define PATCHLEVEL 10
#endif /* _PATCHLEVEL_H_ */