From: Bradley Nicholes Date: Tue, 11 Feb 2003 17:12:01 +0000 (+0000) Subject: Start all CGIs as detached and allow the APR_PROGRAM_* flags to determine X-Git-Tag: pre_ajp_proxy~2163 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=302a8374d65b5f1b4ec02db627991f56d000a838;p=apache 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 --- 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]);