about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-01-17 07:19:09 +0000
committerEric Wong <e@80x24.org>2023-01-18 23:26:03 +0000
commitf7f0e7bee09cfc57ecc6845a8cf9e80a0bbd64f5 (patch)
tree482472346160bc8e89f846cd2ee37671a5b0a2e3
parentd9fb47fe33c5796296549b96df3400299c551f49 (diff)
downloadpublic-inbox-f7f0e7bee09cfc57ecc6845a8cf9e80a0bbd64f5.tar.gz
ipc: drop unused $args from ->ipc_worker_stop
It's not used anywhere, and simplifies the next commit.
-rw-r--r--lib/PublicInbox/IPC.pm4
1 files 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"