]> Sergey Matveev's repositories - public-inbox.git/commit
daemon: drop listeners early in master on graceful shutdown
authorEric Wong <e@80x24.org>
Sun, 15 Dec 2019 23:11:07 +0000 (23:11 +0000)
committerEric Wong <e@80x24.org>
Mon, 16 Dec 2019 06:45:36 +0000 (06:45 +0000)
commit27eb9c104c8287decadda6b7d2b6966aac545945
tree52165aead8438b9e009e362c479dad3f7f0f52da
parent8d9f0928dba4a9ccf5c078660cc9b27048a6b453
daemon: drop listeners early in master on graceful shutdown

For users not relying on socket activation via systemd (or
similar), we want to drop listeners ASAP so another process
can bind to their address.  While we're at it, disable
TTIN and HUP handlers since we have no chance of starting
usable workers without listeners.
lib/PublicInbox/Daemon.pm