Fri, 24 May 2024 19:43:53 +0200
use SIGKILL instead of SIGTERM to cgi scripts in case of errors
src/server/safs/cgi.c | file | annotate | diff | comparison | revisions |
--- a/src/server/safs/cgi.c Fri May 24 12:57:34 2024 +0200 +++ b/src/server/safs/cgi.c Fri May 24 19:43:53 2024 +0200 @@ -570,8 +570,8 @@ handler->debug_finished = TRUE; if(handler->result == REQ_ABORTED && handler->process.pid != 0) { - log_ereport(LOG_FAILURE, "cgi-send: kill script: %s", handler->path); - killpg(handler->process.pid, SIGTERM); + log_ereport(LOG_FAILURE, "cgi-send: kill script: %s pid: %d", handler->path, (int)handler->process.pid); + killpg(handler->process.pid, SIGKILL); } if(--handler->events > 0) {