From: Eric Wong Date: Tue, 17 Jan 2023 07:19:09 +0000 (+0000) Subject: ipc: drop unused $args from ->ipc_worker_stop X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=f7f0e7bee09cfc57ecc6845a8cf9e80a0bbd64f5 ipc: drop unused $args from ->ipc_worker_stop It's not used anywhere, and simplifies the next commit. --- 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"