]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-4.3 patch 43
authorChet Ramey <chet.ramey@case.edu>
Mon, 20 Jun 2016 19:14:03 +0000 (15:14 -0400)
committerChet Ramey <chet.ramey@case.edu>
Mon, 20 Jun 2016 19:14:03 +0000 (15:14 -0400)
execute_cmd.c
patchlevel.h

index 9cebaef34fd48f36a1a4ed768fa19815ef5005fe..4ee59c11bfbdb2dcd15dd5c065337d799f61b7be 100644 (file)
@@ -2405,9 +2405,17 @@ execute_pipeline (command, asynchronous, pipe_in, pipe_out, fds_to_close)
   if (lastpipe_flag)
     {
 #if defined (JOB_CONTROL)
-      append_process (savestring (the_printed_command), dollar_dollar_pid, exec_result, lastpipe_jid);
-#endif
+      if (INVALID_JOB (lastpipe_jid) == 0)
+        {
+          append_process (savestring (the_printed_command_except_trap), dollar_dollar_pid, exec_result, lastpipe_jid);
+          lstdin = wait_for (lastpid);
+        }
+      else
+        lstdin = wait_for_single_pid (lastpid);                /* checks bgpids list */
+#else
       lstdin = wait_for (lastpid);
+#endif
+
 #if defined (JOB_CONTROL)
       /* If wait_for removes the job from the jobs table, use result of last
         command as pipeline's exit status as usual.  The jobs list can get
index 9b7b0e572c5341b347056c8a10376ab87ef107b4..60eb423a4e1f0d0ad4dc7df816db726fbefbd790 100644 (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 42
+#define PATCHLEVEL 43
 
 #endif /* _PATCHLEVEL_H_ */