LISTEN_FDS-inherited sockets are immortal across SIGHUP
commitec30bf29ce5a37d7364c687bec05c8410375f2c9
authorEric Wong <BOFH@YHBT.net>
Mon, 5 Jun 2023 10:12:52 +0000 (5 10:12 +0000)
committerEric Wong <bofh@yhbt.net>
Mon, 5 Jun 2023 10:39:05 +0000 (5 10:39 +0000)
tree595b8e413f0edb1bc6b129af426298f94131b82f
parent835ec74c244611cbf27774ac42454f1149d61250
LISTEN_FDS-inherited sockets are immortal across SIGHUP

When using systemd-style socket activation, consider the
inherited socket immortal and do not drop it on SIGHUP.
This means configs w/o any `listen' directives at all can
continue to work after SIGHUP.

I only noticed this while writing some tests in Perl 5 and
the test suite is two lines shorter to test this feature :>
lib/unicorn/http_server.rb
t/client_body_buffer_size.t
t/integration.t