From f8b8523b6cdae2672d2502e1884b08c479a9c233 Mon Sep 17 00:00:00 2001 From: Bradley Nicholes Date: Tue, 11 Feb 2003 17:12:01 +0000 Subject: [PATCH] Start all CGIs as detached and allow the APR_PROGRAM_* flags to determine if the CGI should be started in its own address space. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98613 13f79535-47bb-0310-9956-ffa450edef68 --- modules/arch/netware/mod_netware.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/arch/netware/mod_netware.c b/modules/arch/netware/mod_netware.c index cd7bf23cac..4e7810d2d4 100644 --- a/modules/arch/netware/mod_netware.c +++ b/modules/arch/netware/mod_netware.c @@ -192,13 +192,16 @@ static apr_status_t ap_cgi_build_command(const char **cmd, const char ***argv, /* Run in its own address space if specified */ detached = apr_table_get(d->file_handler_mode, ext); if (detached) { - e_info->detached = 1; + e_info->cmd_type = APR_PROGRAM_ENV; } + else { + e_info->cmd_type = APR_PROGRAM; + } } /* Tokenize the full command string into its arguments */ apr_tokenize_to_argv(*cmd, (char***)argv, p); - e_info->cmd_type = APR_PROGRAM; + e_info->detached = 1; /* The first argument should be the executible */ *cmd = ap_server_root_relative(p, *argv[0]); -- 2.40.0