From fb5e77103dd443cc2112ba14dc665aa5ec072ce6 Mon Sep 17 00:00:00 2001 From: Tony Cook Date: Wed, 30 May 2018 14:03:04 +1000 Subject: [PATCH] (perl #122112) test for signal handler death in pclose MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Petr Písař --- t/io/pipe.t | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/t/io/pipe.t b/t/io/pipe.t index f9ee65afe8..1d01db6af6 100644 --- a/t/io/pipe.t +++ b/t/io/pipe.t @@ -10,7 +10,7 @@ if (!$Config{'d_fork'}) { skip_all("fork required to pipe"); } else { - plan(tests => 25); + plan(tests => 27); } my $Perl = which_perl(); @@ -241,3 +241,24 @@ SKIP: { is($child, -1, 'child reaped if piped program cannot be executed'); } + +{ + # [perl #122112] refcnt: fd -1 < 0 when a signal handler dies + # while a pipe close is waiting on a child process + my $prog = <