From f7f0e7bee09cfc57ecc6845a8cf9e80a0bbd64f5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 17 Jan 2023 07:19:09 +0000 Subject: ipc: drop unused $args from ->ipc_worker_stop 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" -- cgit v1.2.3-24-ge0c7