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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8b8523b6cdae2672d2502e1884b08c479a9c233;p=thirdparty%2Fapache%2Fhttpd.git 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 cd7bf23cacf..4e7810d2d43 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]);