--- parser3/src/targets/cgi/parser3.C 2026/10/27 23:38:52 1.388 +++ parser3/src/targets/cgi/parser3.C 2026/10/28 20:22:22 1.390 @@ -5,7 +5,7 @@ Authors: Konstantin Morshnev , Alexandr Petrosian */ -volatile const char * IDENT_PARSER3_C="$Id: parser3.C,v 1.388 2026/10/27 23:38:52 moko Exp $"; +volatile const char * IDENT_PARSER3_C="$Id: parser3.C,v 1.390 2026/10/28 20:22:22 moko Exp $"; #include "pa_config_includes.h" @@ -20,6 +20,7 @@ volatile const char * IDENT_PARSER3_C="$ #include "pa_code_cache.h" #include "pa_websocket.h" #include "pa_os.h" +#include "pa_exec.h" #ifdef _MSC_VER #include @@ -332,6 +333,11 @@ private: if(!timeout) return; +#ifndef _MSC_VER + if(pa_exec_active_pid) + kill(-pa_exec_active_pid, SIGKILL); // kill the whole process group so nothing is left orphaned +#endif + if(timeout->expired && timeout->kill_process){ // the request is still running after the grace period pa_log_at(timeout->stamp, "response timeout (%d s) exceeded, process killed", timeout->seconds); @@ -343,7 +349,7 @@ private: timeout->expired=1; if(thread_request) - thread_request->set_skip(Request::SKIP_INTERRUPTED); + thread_request->interrupt(); } };