summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2017-11-03 22:37:33 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2017-11-03 23:04:22 -0400
commitd6e184aca918e95e65b410455cff95bca8478873 (patch)
treed574ea14bd66ffceb42bb66706c2beea38247504
parent0e84df8180a646c8feb3e4b93bbe0731e2165d2e (diff)
downloadlighttpd1.4-d6e184aca918e95e65b410455cff95bca8478873.tar.gz
lighttpd1.4-d6e184aca918e95e65b410455cff95bca8478873.zip
[mod_cgi] quiet trace if mod_cgi sends SIGTERM (fixes #2838)
(spurious trace began in lighttpd 1.4.46) x-ref: ".47 always kills git-http-backend" https://redmine.lighttpd.net/issues/2838
-rw-r--r--src/mod_cgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_cgi.c b/src/mod_cgi.c
index 0c95cc7c..2c3e8c84 100644
--- a/src/mod_cgi.c
+++ b/src/mod_cgi.c
@@ -1027,7 +1027,7 @@ static handler_t cgi_waitpid_cb(server *srv, void *p_d, pid_t pid, int status) {
}
else if (WIFSIGNALED(status)) {
/* ignore SIGTERM if sent by cgi_connection_close() (NULL == hctx)*/
- if (WTERMSIG(status) != SIGTERM || NULL == hctx) {
+ if (WTERMSIG(status) != SIGTERM || NULL != hctx) {
log_error_write(srv, __FILE__, __LINE__, "sdsd", "CGI pid", pid,
"died with signal", WTERMSIG(status));
}