On Tue, Feb 04, 2014 at 08:13:37AM -0800, Ben Reser wrote: > On 2/4/14, 1:14 AM, Philip Martin wrote: > > We want some pattern that ensures __close is always called even when an > > error is returned part way through. Either a pool cleanup or some sort > > of __with_pager(). > > Maybe a new SVN_ERR macro? > > SVN_ERR_PAGER(pager, func()) > > Which calls __close for you before returning the error?
My current plan is to close the pager from a pool cleanup handler that is invoked when svn exits.