Blame bash-5.0-patch-4.patch
|
Petr Šabata |
33fc6c |
From 16c907aa3bb427618733e5a6f2f4e2fc5a3488d3 Mon Sep 17 00:00:00 2001
|
|
Petr Šabata |
33fc6c |
From: Chet Ramey <chet.ramey@case.edu>
|
|
Petr Šabata |
33fc6c |
Date: Sat, 20 Apr 2019 14:24:28 -0400
|
|
Petr Šabata |
33fc6c |
Subject: [PATCH] Bash-5.0 patch 4: the wait builtin without arguments only
|
|
Petr Šabata |
33fc6c |
waits for known children the shell started
|
|
Petr Šabata |
33fc6c |
|
|
Petr Šabata |
33fc6c |
---
|
|
Petr Šabata |
33fc6c |
jobs.c | 4 +---
|
|
Petr Šabata |
33fc6c |
patchlevel.h | 2 +-
|
|
Petr Šabata |
33fc6c |
2 files changed, 2 insertions(+), 4 deletions(-)
|
|
Petr Šabata |
33fc6c |
|
|
Petr Šabata |
33fc6c |
diff --git a/jobs.c b/jobs.c
|
|
Petr Šabata |
33fc6c |
index ce2bdf24..ae3c54c6 100644
|
|
Petr Šabata |
33fc6c |
--- a/jobs.c
|
|
Petr Šabata |
33fc6c |
+++ b/jobs.c
|
|
Petr Šabata |
33fc6c |
@@ -2488,10 +2488,8 @@ wait_for_background_pids ()
|
|
Petr Šabata |
33fc6c |
r = wait_for (last_procsub_child->pid);
|
|
Petr Šabata |
33fc6c |
wait_procsubs ();
|
|
Petr Šabata |
33fc6c |
reap_procsubs ();
|
|
Petr Šabata |
33fc6c |
-#if 1
|
|
Petr Šabata |
33fc6c |
+#if 0
|
|
Petr Šabata |
33fc6c |
/* We don't want to wait indefinitely if we have stopped children. */
|
|
Petr Šabata |
33fc6c |
- /* XXX - should add a loop that goes through the list of process
|
|
Petr Šabata |
33fc6c |
- substitutions and waits for each proc in turn before this code. */
|
|
Petr Šabata |
33fc6c |
if (any_stopped == 0)
|
|
Petr Šabata |
33fc6c |
{
|
|
Petr Šabata |
33fc6c |
/* Check whether or not we have any unreaped children. */
|
|
Petr Šabata |
33fc6c |
diff --git a/patchlevel.h b/patchlevel.h
|
|
Petr Šabata |
33fc6c |
index e7e960c1..c059f0bd 100644
|
|
Petr Šabata |
33fc6c |
--- a/patchlevel.h
|
|
Petr Šabata |
33fc6c |
+++ b/patchlevel.h
|
|
Petr Šabata |
33fc6c |
@@ -25,6 +25,6 @@
|
|
Petr Šabata |
33fc6c |
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
|
|
Petr Šabata |
33fc6c |
looks for to find the patch level (for the sccs version string). */
|
|
Petr Šabata |
33fc6c |
|
|
Petr Šabata |
33fc6c |
-#define PATCHLEVEL 3
|
|
Petr Šabata |
33fc6c |
+#define PATCHLEVEL 4
|
|
Petr Šabata |
33fc6c |
|
|
Petr Šabata |
33fc6c |
#endif /* _PATCHLEVEL_H_ */
|
|
Petr Šabata |
33fc6c |
--
|
|
Petr Šabata |
33fc6c |
2.17.2
|
|
Petr Šabata |
33fc6c |
|