]> Sergey Matveev's repositories - public-inbox.git/commit
daemon: fix SIGUSR2 upgrade with -W0 (no workers)
authorEric Wong <e@yhbt.net>
Sun, 22 Mar 2020 08:58:48 +0000 (08:58 +0000)
committerEric Wong <e@yhbt.net>
Tue, 24 Mar 2020 22:00:25 +0000 (22:00 +0000)
commitd7fda3f4b9d4c9e6d01c818f09905d6827fa693f
treeeff9163fcada3fd086e0f74684422a293ccfdf7e
parentc7acdfe78bda5bf36660a699e882e0e3c431a351
daemon: fix SIGUSR2 upgrade with -W0 (no workers)

Disabling workers via `-W0' blesses the contents of the
@listeners array, so we need to ensure we call fcntl on
the GLOB ref in ->{sock}.

Add tests to ensure USR2 works regardless of whether workers
are enabled or not.
lib/PublicInbox/Daemon.pm
t/httpd-unix.t