Bash-5.3 patch 10: fix loop in subshells calling wait builtin with inherited job list

This commit is contained in:
Chet Ramey
2026-06-03 10:19:04 -04:00
parent 637f5c8696
commit d129c77127
4 changed files with 4 additions and 24755 deletions
+2
View File
@@ -20,6 +20,8 @@ config.status
config.cache
config.log
configure~
autom4te.cache
bash
-24753
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -2839,7 +2839,7 @@ wait_for_background_pids (struct procstat *ps)
ps->pid = pid;
ps->status = (r < 0 || r > 256) ? 127 : r;
}
if (r == -1 && errno == ECHILD)
if ((r < 0 || r > 256) && errno == ECHILD)
{
/* If we're mistaken about job state, compensate. */
check_async = 0;
+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_ */