Return-Path: Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 96403 invoked by uid 500); 3 Oct 2002 18:15:35 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 96390 invoked by uid 500); 3 Oct 2002 18:15:35 -0000 Delivered-To: apmail-httpd-2.0-cvs@apache.org Date: 3 Oct 2002 18:15:34 -0000 Message-ID: <20021003181534.65761.qmail@icarus.apache.org> From: trawick@apache.org To: httpd-2.0-cvs@apache.org Subject: cvs commit: httpd-2.0/modules/generators mod_cgid.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N trawick 2002/10/03 11:15:34 Modified: . CHANGES modules/generators mod_cgid.c Log: Fix a problem with streaming script output and mod_cgid. We have to tell APR that the socket can be treated as a pipe so that the apr_file_t is initialized properly. Revision Changes Path 1.949 +3 -0 httpd-2.0/CHANGES Index: CHANGES =================================================================== RCS file: /home/cvs/httpd-2.0/CHANGES,v retrieving revision 1.948 retrieving revision 1.949 diff -u -r1.948 -r1.949 --- CHANGES 3 Oct 2002 05:39:26 -0000 1.948 +++ CHANGES 3 Oct 2002 18:15:33 -0000 1.949 @@ -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 , Justin Erenkrantz] 1.141 +2 -2 httpd-2.0/modules/generators/mod_cgid.c Index: mod_cgid.c =================================================================== RCS file: /home/cvs/httpd-2.0/modules/generators/mod_cgid.c,v retrieving revision 1.140 retrieving revision 1.141 diff -u -r1.140 -r1.141 --- mod_cgid.c 30 Jul 2002 18:18:03 -0000 1.140 +++ mod_cgid.c 3 Oct 2002 18:15:34 -0000 1.141 @@ -1101,7 +1101,7 @@ * 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 @@ * 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;