From a65fb0677c6188220bf5ceacdb8d9a1a2f24883f Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sat, 4 Oct 2014 21:08:56 -0700 Subject: 33354: when backgrounding a pipeline, close all pipe descriptors in the parent Add test for both this and 33345+33346 --- Src/jobs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/jobs.c b/Src/jobs.c index 83a4d96a4..bd95afb7a 100644 --- a/Src/jobs.c +++ b/Src/jobs.c @@ -1627,8 +1627,10 @@ spawnjob(void) } if (!hasprocs(thisjob)) deletejob(jobtab + thisjob, 0); - else + else { jobtab[thisjob].stat |= STAT_LOCKED; + pipecleanfilelist(jobtab[thisjob].filelist); + } thisjob = -1; } -- cgit 1.4.1