From ad4bd5bbd53363eede5e6af46c6b308278aad47f Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Wed, 7 Feb 2024 16:40:51 +0000 Subject: win32: avoid console windows from CGI scripts When httpd is run in the background its processes are detached from the console. CGI scripts could create subprocesses which needed a console, resulting in annoying console windows appearing. Prevent this by changing the creation flags for CGI scripts to CREATE_NO_WINDOW. --- win32/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/process.c b/win32/process.c index a31023500..5be07e54a 100644 --- a/win32/process.c +++ b/win32/process.c @@ -277,7 +277,7 @@ create_detached_process(const char *prog, char *const *argv) NULL, /* process security attributes */ NULL, /* primary thread security attributes */ TRUE, /* handles are inherited */ - DETACHED_PROCESS, /* creation flags */ + CREATE_NO_WINDOW, /* creation flags */ NULL, /* use parent's environment */ NULL, /* use parent's current directory */ &siStartInfo, /* STARTUPINFO pointer */ -- cgit v1.2.3-55-g6feb