On HUP, migrate the module configuration from the old CONF_SECTION
authoraland <aland>
Thu, 18 Aug 2005 23:31:21 +0000 (23:31 +0000)
committeraland <aland>
Thu, 18 Aug 2005 23:31:21 +0000 (23:31 +0000)
commitd9a865eb5ddddf293079eb64dbca797244a51945
tree2f85d822374dcaff9ee5c6e0fae081ada33252ea
parentbf95a4ea031d31917ca171ebddf79c66cf9c32af
On HUP, migrate the module configuration from the old CONF_SECTION
to the new CONF_SECTION.  This means that (for example), sql doesn't
have to tear down it's sockets & re-build them on HUP.  Instead,
it just keeps working.

The code is disabled (#if 0), because many modules depend on files
on the disk, and they should re-read those on HUP, if they've
changed.  This additional work requires:

- flag in module_t saying "HUP-safe"
- and the ability for modules to "register" files that they
  depend, so that the HUP code can do the stat() itself, and
  migrate the CONF_SECTION if nothing has changed
src/include/conffile.h
src/main/conffile.c
src/main/mainconfig.c