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,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 F05711FA35 for ; Tue, 17 Jan 2023 07:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1673939953; bh=lPY2ZvRY6GXi8fzM5D2Mf6jLATRdD6kiNWdLH34aBM0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wxhBJe4ZArwhZ2/VxDeeYp9eZx/txK6GKvDS6i6Hd0rqSe1Uzslrwku6pYjm1pWjh DFT/2PLTVMue/KnWXvL3dHQB7rzfG2Hd+hHu4Uv64CeKijKmjpQFCtLBeImQo5yIF5 Uvs3grd73f9PsRTy5UgW9NGCzlSV0CwvR8xjOMuI= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 10/12] ipc: drop unused $args from ->ipc_worker_stop Date: Tue, 17 Jan 2023 07:19:09 +0000 Message-Id: <20230117071911.1577890-11-e@80x24.org> In-Reply-To: <20230117071911.1577890-1-e@80x24.org> References: <20230117071911.1577890-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: It's not used anywhere, and simplifies the next commit. --- lib/PublicInbox/IPC.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/IPC.pm b/lib/PublicInbox/IPC.pm index 671ad5d5..34e40118 100644 --- a/lib/PublicInbox/IPC.pm +++ b/lib/PublicInbox/IPC.pm @@ -169,7 +169,7 @@ sub ipc_atfork_child { # idempotent, can be called regardless of whether worker is active or not sub ipc_worker_stop { - my ($self, $args) = @_; + my ($self) = @_; my ($pid, $ppid) = delete(@$self{qw(-ipc_pid -ipc_ppid)}); my ($w_req, $r_res) = delete(@$self{qw(-ipc_req -ipc_res)}); if (!$w_req && !$r_res) { @@ -180,7 +180,7 @@ sub ipc_worker_stop { $w_req = $r_res = undef; return if $$ != $ppid; - dwaitpid($pid, \&ipc_worker_reap, [$self, $args]); + dwaitpid($pid, \&ipc_worker_reap, [$self]); } # use this if we have multiple readers reading curl or "pigz -dc"