aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-02-07 16:40:51 +0000
committerRon Yorston <rmy@pobox.com>2024-02-07 16:54:19 +0000
commitad4bd5bbd53363eede5e6af46c6b308278aad47f (patch)
treeeff2e199ef965d19568e959e58ad01914647dfeb
parent49568fc1f16ff93848650e509855d7f55740f30d (diff)
downloadbusybox-w32-ad4bd5bbd53363eede5e6af46c6b308278aad47f.tar.gz
busybox-w32-ad4bd5bbd53363eede5e6af46c6b308278aad47f.tar.bz2
busybox-w32-ad4bd5bbd53363eede5e6af46c6b308278aad47f.zip
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.
-rw-r--r--win32/process.c2
1 files changed, 1 insertions, 1 deletions
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)
277 NULL, /* process security attributes */ 277 NULL, /* process security attributes */
278 NULL, /* primary thread security attributes */ 278 NULL, /* primary thread security attributes */
279 TRUE, /* handles are inherited */ 279 TRUE, /* handles are inherited */
280 DETACHED_PROCESS, /* creation flags */ 280 CREATE_NO_WINDOW, /* creation flags */
281 NULL, /* use parent's environment */ 281 NULL, /* use parent's environment */
282 NULL, /* use parent's current directory */ 282 NULL, /* use parent's current directory */
283 &siStartInfo, /* STARTUPINFO pointer */ 283 &siStartInfo, /* STARTUPINFO pointer */