From 4d0d6e8bed8e3583aaaaf1b34c85209031c95bbb Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Sun, 31 Aug 2014 14:08:20 -0700 Subject: Further tweaking of the descriptor leak regression test that sometimes hangs --- Test/A05execution.ztst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Test') diff --git a/Test/A05execution.ztst b/Test/A05execution.ztst index 9615f091b..df6d7bc06 100644 --- a/Test/A05execution.ztst +++ b/Test/A05execution.ztst @@ -204,12 +204,12 @@ F:the bug is still there or it reappeared. See workers-29973 for details. F:This similar test was triggering a reproducible failure with pipestatus. { unsetopt MONITOR } 2>/dev/null - coproc { read -Et 5 || kill -INT $$ } + coproc { read -et 5 || { print -u $ZTST_fd KILLED; kill -HUP -$$ } } print -u $ZTST_fd 'This test takes 5 seconds to fail...' - { printf "%d\n" {1..20000} } | ( read -E ) - hang(){ printf "%d\n" {2..20000} | cat }; hang | ( read -E ) + { printf "%d\n" {1..20000} } | ( read -e ) + hang(){ printf "%d\n" {2..20000} | cat }; hang | ( read -e ) print -p done - read -Et 6 -p + read -et 6 -p 0:Bug regression: piping a shell construct to an external process may hang >1 >2 -- cgit 1.4.1