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

Re: svn commit: rev 834 - trunk/subversion/libsvn_wc

From: Justin Erenkrantz <jerenkrantz_at_ebuilt.com>
Date: 2002-01-11 17:19:38 CET

On Fri, Jan 11, 2002 at 03:00:45PM +0000, Philip Martin wrote:
> The problem with APR_DELONCLOSE is that (on Unix at least) the file
> gets unliked just after creation and so cannot be passed to an
> external diff program. Pool cleanup handlers can be used (and diff
> does use them) but these need to be removed before invoking the
> external diff program because the child process will run it's version
> of the handlers. It's painful...

There are two types of cleanups passed to apr_pool_cleanup_register:

plain_cleanups - called only when the pool is destroyed
child_cleanup - called when a child is created

As I understand your issue, simply removing the child_cleanup
function (i.e. set it to NULL) should be sufficient.

Sander can bash me to pieces if I'm wrong. -- justin

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:56 2006

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.