about summary refs log tree commit homepage
path: root/lib/PublicInbox/Daemon.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-03-05 06:00:59 +0000
committerEric Wong <e@80x24.org>2016-03-05 06:00:59 +0000
commit27739bcba4a311b3d06eadce75294fe73646570b (patch)
tree1dd717ad5d15f016c34dfba9d789dcb2a665cce6 /lib/PublicInbox/Daemon.pm
parentdd3939e950f0d0196308dc967b438417355798cd (diff)
downloadpublic-inbox-27739bcba4a311b3d06eadce75294fe73646570b.tar.gz
No need to create a new sub which kill ourselves $$ when we can
invoke worker_quit directly.
Diffstat (limited to 'lib/PublicInbox/Daemon.pm')
-rw-r--r--lib/PublicInbox/Daemon.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Daemon.pm b/lib/PublicInbox/Daemon.pm
index 30411e13..8a0af8de 100644
--- a/lib/PublicInbox/Daemon.pm
+++ b/lib/PublicInbox/Daemon.pm
@@ -391,7 +391,7 @@ sub daemon_loop ($$) {
                 $refresh->(); # preload by default
                 $parent_pipe = master_loop(); # returns if in child process
                 my $fd = fileno($parent_pipe);
-                Danga::Socket->AddOtherFds($fd => sub { kill('TERM', $$) } );
+                Danga::Socket->AddOtherFds($fd => *worker_quit);
         } else {
                 reopen_logs();
                 $set_user->() if $set_user;