about summary refs log tree commit homepage
path: root/lib/PublicInbox/Daemon.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-05-08 19:24:07 +0000
committerEric Wong <e@80x24.org>2019-05-08 19:24:07 +0000
commitfe86054ee1e2d93b19762a34ed1aaebe43635ff0 (patch)
tree6504ddceac55dd03cad09d8bcc2a41eafe8bc273 /lib/PublicInbox/Daemon.pm
parenta316ca7db9fd3ea7dded317ac6d4d0a6bf174fb3 (diff)
parent90c5a78c8f6239b27c32b816d1cd029196ba2fe2 (diff)
downloadpublic-inbox-fe86054ee1e2d93b19762a34ed1aaebe43635ff0.tar.gz
* origin/danga-bundle:
  DS: epoll: fix misordered EPOLL_CTL_DEL call
  DS: drop unused "_undef" sub
  syscall: drop readahead wrapper
  build: do not manify DS and Syscall pods
  DS: handle EINTR in IO::Poll path, too
  DS: workaround IO::Kqueue EINTR (mis-)handling
  DS: drop profiling support
  DS: remove unused fields and functions
  listener: use EPOLLEXCLUSIVE for listen sockets
  bundle Danga::Socket and Sys::Syscall
Diffstat (limited to 'lib/PublicInbox/Daemon.pm')
-rw-r--r--lib/PublicInbox/Daemon.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/PublicInbox/Daemon.pm b/lib/PublicInbox/Daemon.pm
index 48051f48..68ba9876 100644
--- a/lib/PublicInbox/Daemon.pm
+++ b/lib/PublicInbox/Daemon.pm
@@ -12,7 +12,7 @@ use Cwd qw/abs_path/;
 use Time::HiRes qw(clock_gettime CLOCK_MONOTONIC);
 STDOUT->autoflush(1);
 STDERR->autoflush(1);
-require Danga::Socket;
+require PublicInbox::DS;
 require POSIX;
 require PublicInbox::Listener;
 require PublicInbox::ParentPipe;
@@ -172,14 +172,14 @@ sub worker_quit {
         # killing again terminates immediately:
         exit unless @listeners;
 
-        $_->close foreach @listeners; # call Danga::Socket::close
+        $_->close foreach @listeners; # call PublicInbox::DS::close
         @listeners = ();
         $reason->close if ref($reason) eq 'PublicInbox::ParentPipe';
 
         my $proc_name;
         my $warn = 0;
         # drop idle connections and try to quit gracefully
-        Danga::Socket->SetPostLoopCallback(sub {
+        PublicInbox::DS->SetPostLoopCallback(sub {
                 my ($dmap, undef) = @_;
                 my $n = 0;
                 my $now = clock_gettime(CLOCK_MONOTONIC);
@@ -486,7 +486,7 @@ sub daemon_loop ($$) {
                 PublicInbox::Listener->new($_, $post_accept)
         } @listeners;
         PublicInbox::EvCleanup::enable();
-        Danga::Socket->EventLoop;
+        PublicInbox::DS->EventLoop;
         $parent_pipe = undef;
 }