]> granicus.if.org Git - apache/commitdiff
Start all CGIs as detached and allow the APR_PROGRAM_* flags to determine
authorBradley Nicholes <bnicholes@apache.org>
Tue, 11 Feb 2003 17:12:01 +0000 (17:12 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Tue, 11 Feb 2003 17:12:01 +0000 (17:12 +0000)
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

index cd7bf23cacfa0440f73c18d1f94b6e2672d3070f..4e7810d2d433d564b4bbc2aeebd549c3634cbb20 100644 (file)
@@ -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]);