svashisht / rpms / bash

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