diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-11-26 14:58:35 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2023-05-03 23:11:34 -0400 |
commit | 8acf2ae5e62269c33e4f6cc205d025de278924ae (patch) | |
tree | b30cae5c6dee12e3e50a22cb6973cffac474d92a /src/mod_cgi.c | |
parent | af68a4db08b70d5f4c918fbe0a871159daf72e6b (diff) | |
download | lighttpd-git-8acf2ae5e62269c33e4f6cc205d025de278924ae.tar.gz |
[multiple] _WIN32 protect code w/ HAVE_FORK
wrap fork() and kill()
Diffstat (limited to 'src/mod_cgi.c')
-rw-r--r-- | src/mod_cgi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mod_cgi.c b/src/mod_cgi.c index 6cc7b5af..0b2a9c9b 100644 --- a/src/mod_cgi.c +++ b/src/mod_cgi.c @@ -388,7 +388,11 @@ static cgi_pid_t * cgi_pid_add(plugin_data *p, pid_t pid, handler_ctx *hctx) { static void cgi_pid_kill(cgi_pid_t *cgi_pid, int sig) { cgi_pid->signal_sent = sig; /*(save last signal sent)*/ + #ifdef HAVE_FORK + /* XXX: future: revisit on _WIN32 + * (perhaps use pid_t as process handle) */ kill(cgi_pid->pid, sig); + #endif } static void cgi_pid_del(plugin_data *p, cgi_pid_t *cgi_pid) { |