]> Sergey Matveev's repositories - public-inbox.git/commitdiff
ipc: drop unused $args from ->ipc_worker_stop
authorEric Wong <e@80x24.org>
Tue, 17 Jan 2023 07:19:09 +0000 (07:19 +0000)
committerEric Wong <e@80x24.org>
Wed, 18 Jan 2023 23:26:03 +0000 (23:26 +0000)
It's not used anywhere, and simplifies the next commit.

lib/PublicInbox/IPC.pm

index 671ad5d536003abd4722a90d12834694dbff74a2..34e401185e92906e9e3762e849c86783412c2496 100644 (file)
@@ -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"