mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-03 18:30:49 +02:00
Bash-5.3 patch 10: fix loop in subshells calling wait builtin with inherited job list
This commit is contained in:
@@ -20,6 +20,8 @@ config.status
|
||||
config.cache
|
||||
config.log
|
||||
|
||||
configure~
|
||||
|
||||
autom4te.cache
|
||||
|
||||
bash
|
||||
|
||||
-24753
File diff suppressed because it is too large
Load Diff
@@ -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
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user