httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <>
Subject Re: BUFF and pool cleanups
Date Sun, 20 Jul 1997 17:37:31 GMT

On Sun, 20 Jul 1997, Ben Laurie wrote:

> OTOH if a pool is cleaned up before its finished with, who cares if data
> is lost?

Well I was noticing these changes in my cgi patch:

-    pfclose(r->main ? r->main->pool : r->pool, script_in);
-    pfclose(r->main ? r->main->pool : r->pool, script_err);
+    bclose(script_in);
+    bclose(script_err);

and I realised the semantic difference between an fclose and a bclose. 
Note that when a FILE * is cleaned up out of a pool its write buffer is
flushed by a fclose.  I was just worried there might exist a subtle case
where we need this behaviour. 


View raw message