summaryrefslogtreecommitdiff
path: root/app-shells/bash/files/bash-3.0-pgrp-pipe-fix.patch
blob: 46df6213b7a44a078eee39e2023f76a96c169524 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Fix an error when using pipes and PGRP_PIPE is enabled.
( exec 3>&1; : `echo >&3` )
bash: 3: Bad file descriptor

http://bugs.gentoo.org/92349

Patch from upstream

*** a/jobs.c
--- b/jobs.c
***************
*** 3456,3459 ****
--- 3901,3907 ----
    stop_making_children ();
    start_pipeline ();
+ #if defined (PGRP_PIPE)
+   pipe_close (pgrp_pipe);
+ #endif
    delete_all_jobs (0);
    set_job_control (0);