Return-Path: Delivered-To: apache-bugdb-archive@hyperreal.org Received: (qmail 9156 invoked by uid 6000); 13 Oct 1999 03:10:24 -0000 Received: (qmail 9009 invoked by uid 2001); 13 Oct 1999 03:10:16 -0000 Received: (qmail 23728 invoked by uid 2012); 26 Sep 1999 05:53:22 -0000 Message-Id: <19990926055322.23727.qmail@hyperreal.org> Date: 26 Sep 1999 05:53:22 -0000 From: Faisal Nasim Reply-To: swiftkid@bigfoot.com To: apbugs@hyperreal.org X-Send-Pr-Version: 3.2 Subject: general/5135: fd and fd_in of BUFF api are dead Sender: apache-bugdb-owner@apache.org Precedence: bulk >Number: 5135 >Category: general >Synopsis: fd and fd_in of BUFF api are dead >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Tue Oct 12 20:10:13 PDT 1999 >Last-Modified: >Originator: swiftkid@bigfoot.com >Organization: apache >Release: 1.3.9 >Environment: ... >Description: The file descriptors in the BUFF API are dead and do not work when opened into a FILE * variable using fdopen(). Example, I tried that in mod_cgi: starting of the func ... FILE *myfile; if ( ( myfile = fdopen ( script_in -> fd , "r" ) ) == NULL ) { puts ( "error opening handle" ); return OK; } I also tried script_in -> fd_in ... as I was on Windows, it prited the error back on the console screen. I also tried script_out -> fd and fd_in, and resulted in assuming that you have problem with your BUFF api... All I am trying to do is convert a BUFF into FILE * >How-To-Repeat: >Fix: Don't destroy the fd and fd_in handles if you destroy them.... >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]