From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 7EF7F1F4C1 for ; Mon, 25 Nov 2024 07:47:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1732520834; bh=4gmMUPYxO153aYXhOXqiipEsdmc8Uqw7D+AyPoa7OU8=; h=From:To:Subject:Date:From; b=JpcG/N2CaTF0bxo0wl2wMDMfW5HT8GrXRp80yU2xkm8ZdC7JiIag0VYp/zMIIXAWN 1MZtvA3VI670hBFADB5MBT0LqUO7hCM35NcO0oCRcHZCZdL63ehr9ZQyDDgBwn26iy 90g49BY/zKoVLcyk7XiU84OnbL//ZsPYd68h+IwM= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] spawn: send_cmd: respect retries arg Date: Mon, 25 Nov 2024 07:47:14 +0000 Message-ID: <20241125074714.710897-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Unfortunately, this is hard to test but obvious the 5th arg needs to be used as it is in the pure Perl and XS implementation. --- lib/PublicInbox/Spawn.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/Spawn.pm b/lib/PublicInbox/Spawn.pm index e9e81e88..19bedb10 100644 --- a/lib/PublicInbox/Spawn.pm +++ b/lib/PublicInbox/Spawn.pm @@ -332,7 +332,7 @@ EOM $ENV{PERL_INLINE_DIRECTORY} = $inline_dir; %RLIMITS = rlimit_map(); *send_cmd4 = sub ($$$$;$) { - send_cmd4_($_[0], $_[1], $_[2], $_[3], 50); + send_cmd4_($_[0], $_[1], $_[2], $_[3], $_[4] // 50); } } else { require PublicInbox::SpawnPP;