]> Sergey Matveev's repositories - public-inbox.git/commit
daemon: use DESTROY for unlinking --pid-file
authorEric Wong <e@80x24.org>
Thu, 12 Dec 2019 21:16:49 +0000 (21:16 +0000)
committerEric Wong <e@80x24.org>
Sat, 14 Dec 2019 21:13:51 +0000 (21:13 +0000)
commitb93c7a7efed33c68a2cf229d3086d4edec082149
treeeba60a053e50ba62f80c8fb2f9b0bcf7b34703bf
parentede8cc1c664e332cfa44bd22c36a31aac1a5fb13
daemon: use DESTROY for unlinking --pid-file

This gets rid of the last "END{}" block in our code and cleans
up a (temporary) circular reference.

Furthermore, ensure the cleanup code still works in all
configurations by adding tests and testing both the -W1
(default, 1 worker) and -W0 (no workers) code paths.
lib/PublicInbox/Daemon.pm
t/httpd-unix.t