summaryrefslogtreecommitdiffstats
path: root/debian/patches/wait-builtin-avoid-hanging-on-inherited-children.diff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 18:33:24 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 18:33:24 +0000
commit2d240c706fdccd408ed0ae47d59a98203f024d77 (patch)
treeba3d7ec67413ccec2cd03bd12993b1704642a7a6 /debian/patches/wait-builtin-avoid-hanging-on-inherited-children.diff
parentAdding upstream version 5.0. (diff)
downloadbash-2d240c706fdccd408ed0ae47d59a98203f024d77.tar.xz
bash-2d240c706fdccd408ed0ae47d59a98203f024d77.zip
Adding debian version 5.0-4.debian/5.0-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/wait-builtin-avoid-hanging-on-inherited-children.diff')
-rw-r--r--debian/patches/wait-builtin-avoid-hanging-on-inherited-children.diff26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/patches/wait-builtin-avoid-hanging-on-inherited-children.diff b/debian/patches/wait-builtin-avoid-hanging-on-inherited-children.diff
new file mode 100644
index 0000000..32daf39
--- /dev/null
+++ b/debian/patches/wait-builtin-avoid-hanging-on-inherited-children.diff
@@ -0,0 +1,26 @@
+From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
+Date: Mon, 15 Apr 2019 18:26:33 -0400
+Subject: wait builtin: avoid hanging on inherited children
+
+in https://lists.gnu.org/archive/html/bug-bash/2019-04/msg00096.html,
+Chet Ramey proposes this fix to avoid the wait builtin hanging on
+previously unknown children.
+
+This addresses debian bug #920455.
+---
+ jobs.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/jobs.c b/jobs.c
+index ce2bdf2..2c24537 100644
+--- a/jobs.c
++++ b/jobs.c
+@@ -2488,7 +2488,7 @@ wait_for_background_pids ()
+ r = wait_for (last_procsub_child->pid);
+ wait_procsubs ();
+ reap_procsubs ();
+-#if 1
++#if 0
+ /* We don't want to wait indefinitely if we have stopped children. */
+ /* XXX - should add a loop that goes through the list of process
+ substitutions and waits for each proc in turn before this code. */