diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-09-12 19:13:44 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-09-13 03:37:11 -0400 |
commit | 7b615d5d24048d38bd7e8368dd1de91b0d26cbaa (patch) | |
tree | 234270c899458dbe9c13c49d32b049d7079cd04d /src/mod_cgi.c | |
parent | 243510dbb4d79a3866c288a7d6530f6015c5b537 (diff) | |
download | lighttpd-git-7b615d5d24048d38bd7e8368dd1de91b0d26cbaa.tar.gz |
[multiple] de-dup file and piped loggers (fixes #3101)
de-dup file and piped loggers for error logs and access logs
x-ref:
"RFE: de-dup file and piped loggers"
https://redmine.lighttpd.net/issues/3101
Diffstat (limited to 'src/mod_cgi.c')
-rw-r--r-- | src/mod_cgi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mod_cgi.c b/src/mod_cgi.c index b232a813..d9f6a7a5 100644 --- a/src/mod_cgi.c +++ b/src/mod_cgi.c @@ -3,6 +3,7 @@ #include "base.h" #include "stat_cache.h" #include "http_kv.h" +#include "fdlog.h" #include "log.h" #include "response.h" #include "http_cgi.h" @@ -862,7 +863,7 @@ static int cgi_create_env(request_st * const r, plugin_data * const p, handler_c log_perror(r->conf.errh, __FILE__, __LINE__, "open dirname %s failed", r->physical.path.ptr); } - int serrh_fd = r->conf.serrh ? r->conf.serrh->errorlog_fd : -1; + int serrh_fd = r->conf.serrh ? r->conf.serrh->fd : -1; pid_t pid = (dfd >= 0) ? fdevent_fork_execve(args[0], args, envp, to_cgi_fds[0], from_cgi_fds[1], serrh_fd, dfd) |