]> granicus.if.org Git - apache/commitdiff
Fix a problem with streaming script output and mod_cgid. We have
authorJeff Trawick <trawick@apache.org>
Thu, 3 Oct 2002 18:15:34 +0000 (18:15 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 3 Oct 2002 18:15:34 +0000 (18:15 +0000)
to tell APR that the socket can be treated as a pipe so that the
apr_file_t is initialized properly.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97087 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/generators/mod_cgid.c

diff --git a/CHANGES b/CHANGES
index 9902bca2561321c4bee04c924ae8bb39c7c004c3..a447169537d52a707bfedf449c385a8d82b5be90 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,8 @@
 Changes with Apache 2.0.44
 
+  *) Fix a problem with streaming script output and mod_cgid.
+     [Jeff Trawick]
+
   *) Add ap_register_provider/ap_lookup_provider API.
      [John K. Sterling <john@sterls.com>, Justin Erenkrantz]
 
index fd43f5afb72d10f4cd27deef2339762df708c6d0..5f0ffdba0bddeb4e40af95e53468c52aa1e0cef1 100644 (file)
@@ -1101,7 +1101,7 @@ static int cgid_handler(request_rec *r)
      * Note that this does not register a cleanup for the socket.  We did
      * that explicitly right after we created the socket.
      */
-    apr_os_file_put(&tempsock, &sd, 0, r->pool);
+    apr_os_pipe_put(&tempsock, &sd, r->pool);
 
     if ((argv0 = strrchr(r->filename, '/')) != NULL) 
         argv0++; 
@@ -1422,7 +1422,7 @@ static int include_cmd(include_ctx_t *ctx, apr_bucket_brigade **bb, char *comman
      * Note that this does not register a cleanup for the socket.  We did
      * that explicitly right after we created the socket.
      */
-    apr_os_file_put(&tempsock, &sd, 0, r->pool);
+    apr_os_pipe_put(&tempsock, &sd, r->pool);
 
     if ((retval = ap_setup_client_block(r, REQUEST_CHUNKED_ERROR))) 
         return retval;