summaryrefslogtreecommitdiff
path: root/src/plugin.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2019-03-21 20:29:34 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2019-04-20 02:10:28 -0400
commitf1e9bcb08a5c736fb55c92dce8370ff70c8cd2df (patch)
tree8a4625a9e5a126219f828f3440c4e30fcc28882e /src/plugin.c
parent4183e723ce660793a7ea116c4b4072667934fc18 (diff)
downloadlighttpd-git-f1e9bcb08a5c736fb55c92dce8370ff70c8cd2df.tar.gz
[core] new worker_init hook to follow parent fork
Diffstat (limited to 'src/plugin.c')
-rw-r--r--src/plugin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugin.c b/src/plugin.c
index c42aaa34..f38718fa 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -50,6 +50,7 @@ typedef enum {
PLUGIN_FUNC_INIT,
PLUGIN_FUNC_CLEANUP,
PLUGIN_FUNC_SET_DEFAULTS,
+ PLUGIN_FUNC_WORKER_INIT,
PLUGIN_FUNC_SIZEOF
} plugin_t;
@@ -348,6 +349,7 @@ PLUGIN_TO_SLOT(PLUGIN_FUNC_HANDLE_TRIGGER, handle_trigger)
PLUGIN_TO_SLOT(PLUGIN_FUNC_HANDLE_SIGHUP, handle_sighup)
PLUGIN_TO_SLOT(PLUGIN_FUNC_CLEANUP, cleanup)
PLUGIN_TO_SLOT(PLUGIN_FUNC_SET_DEFAULTS, set_defaults)
+PLUGIN_TO_SLOT(PLUGIN_FUNC_WORKER_INIT, worker_init)
#undef PLUGIN_TO_SLOT
@@ -456,6 +458,7 @@ handler_t plugins_call_init(server *srv) {
PLUGIN_TO_SLOT(PLUGIN_FUNC_CONNECTION_RESET, connection_reset);
PLUGIN_TO_SLOT(PLUGIN_FUNC_CLEANUP, cleanup);
PLUGIN_TO_SLOT(PLUGIN_FUNC_SET_DEFAULTS, set_defaults);
+ PLUGIN_TO_SLOT(PLUGIN_FUNC_WORKER_INIT, worker_init);
#undef PLUGIN_TO_SLOT
if (p->init) {