[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: branch 0.35.0: All my "make tests" are ok, how about you? ;-)

From: Erik Huelsmann <e.huelsmann_at_gmx.net>
Date: 2003-12-17 17:12:45 CET

> Just goes to show, we _must_ close files when we're done with them, like
> I said.

BTW: you're looking at the code I am going to ask a function change for in
APR. I thought to do that after 1.0; since there is only one instance we do
this within Subversion I didn't think we have a very hard case.

The thing is: we want a temporary file to be upgraded to a permanent one,
but only after we reach a certain state. Therefore I was going to create the
file with the APR_DELONCLOSE flag. After we reach the state we want to be in,
we clear the APR_DELONCLOSE flag and close the file. It has been upgraded to a
permanent one. If we don't reach the state we want to be in, we don't clear
the flag and APR closes and deletes the file for us.

This is all possible with the current APR implementation except for the
Win32 one: it uses the (unclearable) system flag to create this behaviour,
whereas all other implementations use one built into APR.



+++ GMX - die erste Adresse fr Mail, Message, More +++
Neu: Preissenkung fr MMS und FreeMMS! http://www.gmx.net
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 17 17:13:41 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.