www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Faisal Nasim <swift...@bigfoot.com>
Subject general/5135: fd and fd_in of BUFF api are dead
Date Sun, 26 Sep 1999 05:53:22 GMT

>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
>Originator:     swiftkid@bigfoot.com
>Release:        1.3.9
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 *

Don't destroy the fd and fd_in handles if you destroy them....
[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> 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!     ]

View raw message