use SIGKILL instead of SIGTERM to cgi scripts in case of errors

Fri, 24 May 2024 19:43:53 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Fri, 24 May 2024 19:43:53 +0200
changeset 525
072d7794bcca
parent 524
9f1d30988231
child 526
6c06b845701a

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) {

mercurial