From 66375be4fbab78ce5e3738593f6615e635e4cbc1 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 26 Nov 2023 02:11:00 +0000 Subject: xap_client: attach PID to the IO object As with our popen_* uses, we can simplify callers by using attach_pid to handle automatic reaping upon close. --- t/xap_helper.t | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 't') diff --git a/t/xap_helper.t b/t/xap_helper.t index 9e0b234d..02e5ec7d 100644 --- a/t/xap_helper.t +++ b/t/xap_helper.t @@ -173,8 +173,7 @@ my @id2root; my $ar; for my $n (@NO_CXX) { local $ENV{PI_NO_CXX} = $n; - my ($xhc, $pid) = PublicInbox::XapClient::start_helper('-j0'); - $ar = PublicInbox::AutoReap->new($pid); + my $xhc = PublicInbox::XapClient::start_helper('-j0'); pipe(my $err_r, my $err_w); # git patch-id --stable