[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
personal/stbuehler/1.4.48-mod-proxy-fix
Glenn Strauss 5 years ago
parent 0e84df8180
commit d6e184aca9

@ -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));
}

Loading…
Cancel
Save