tests: zgrep-signal race condition fix
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 19 Jun 2013 15:46:29 +0000 (08:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 19 Jun 2013 15:47:08 +0000 (08:47 -0700)
commit6263972df3140affd285399b7957de0a17370577
tree2a521bc5d6f22b6c90d7d08b918becd006ec4f33
parentc423935181a9a92beadb247747f0bcab2c597e20
tests: zgrep-signal race condition fix

* tests/zgrep-signal: Check that Perl supports dup2.
(exec_with_SIGPIPE_SIGDFL): Remove.
(write_to_dangling_pipe): Simplify by moving more of it into Perl.
Fix race condition, where subcommand writes to a pipe before the ":"
command exits.  Problem reported by Thorsten Glaser in
<http://lists.gnu.org/archive/html/bug-gzip/2013-06/msg00028.html>.
tests/zgrep-signal