From: Eric Wong Date: Sun, 26 Nov 2023 02:11:01 +0000 (+0000) Subject: xap_client: pass arguments to top-level xap_helper X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3a13a6f051202caaa4b71cc8dc3510544b8d05c;p=thirdparty%2Fpublic-inbox.git xap_client: pass arguments to top-level xap_helper This ensures our tests actually test the -j0 and -j1 cases properly. --- diff --git a/lib/PublicInbox/XapClient.pm b/lib/PublicInbox/XapClient.pm index 7737e30d5..1f9ddcccf 100644 --- a/lib/PublicInbox/XapClient.pm +++ b/lib/PublicInbox/XapClient.pm @@ -40,6 +40,7 @@ sub start_helper { $cmd = [$^X, ($^W ? ('-w') : ()), "-M$cls", '-e', $cls.'::start(@ARGV)', '--' ]; } + push @$cmd, @argv; my $pid = spawn($cmd, $env, { 0 => $in }); my $self = bless { io => $sock, impl => $cls }, __PACKAGE__; PublicInbox::IO::attach_pid($sock, $pid);