diff options
author | Eric Wong <e@80x24.org> | 2023-11-26 02:11:00 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-11-26 19:34:54 +0000 |
commit | 66375be4fbab78ce5e3738593f6615e635e4cbc1 (patch) | |
tree | 94018a69e9594b9923e44552708291f081c5d54f /t | |
parent | a5209404e43d3bb58edca002255bb665183509fa (diff) | |
download | public-inbox-66375be4fbab78ce5e3738593f6615e635e4cbc1.tar.gz |
As with our popen_* uses, we can simplify callers by using attach_pid to handle automatic reaping upon close.
Diffstat (limited to 't')
-rw-r--r-- | t/xap_helper.t | 3 |
1 files changed, 1 insertions, 2 deletions
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 <t/data/0001.patch | awk '{print $1}' |