>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: [EMAIL PROTECTED] >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 <[EMAIL PROTECTED]> 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! ]