From 28a962f557952a6001d37f4f4f7034361d11bf89 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 23 Jul 2015 09:34:11 +0100 Subject: 35849: close fd's from process substitution after fork Leaving these hanging in parent could cause deadlock: test added. --- Test/D03procsubst.ztst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Test') diff --git a/Test/D03procsubst.ztst b/Test/D03procsubst.ztst index 7b8758901..9ab67c2b4 100644 --- a/Test/D03procsubst.ztst +++ b/Test/D03procsubst.ztst @@ -126,3 +126,18 @@ eval 'foo here is some output)' 0:full alias expanded when substitution starts in alias >here is some output + + if ! (mkfifo test_pipe >/dev/null 2>&1); then + ZTST_skip="mkfifo not available" + else + echo 1 | tee >(cat > test_pipe) | (){ + local pipein + read pipein 1 +>1 -- cgit 1.4.1