summaryrefslogtreecommitdiff
path: root/src/mod_scgi.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2017-09-10 15:28:51 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2017-09-10 16:24:34 -0400
commit9030cfaecf07fc2426b01f6f3a1df442ccdd3ebb (patch)
tree953b0a4c4e8b7a7ac79adb67f0d5c2111d895c5d /src/mod_scgi.c
parent26dce93086ba46a3d9ead391b33b8a02515416ae (diff)
downloadlighttpd-git-9030cfaecf07fc2426b01f6f3a1df442ccdd3ebb.tar.gz
[core] SIGCHLD handle_waitpid hook for modules
centralize most waitpid() handling in core server, with hooks for modules to be informed of pid and status when a process exits. This enables faster discovery (and restart) of exited processes, and also allows for lighttpd to manage backend processes in the parent (master) process when server.max-worker > 0.
Diffstat (limited to 'src/mod_scgi.c')
-rw-r--r--src/mod_scgi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mod_scgi.c b/src/mod_scgi.c
index 14d86a48..9510fb8d 100644
--- a/src/mod_scgi.c
+++ b/src/mod_scgi.c
@@ -297,6 +297,7 @@ int mod_scgi_plugin_init(plugin *p) {
p->handle_subrequest_start = scgi_check_extension_2;
p->handle_subrequest = gw_handle_subrequest;
p->handle_trigger = gw_handle_trigger;
+ p->handle_waitpid = gw_handle_waitpid_cb;
p->data = NULL;