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

Re: signal handling

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-08-20 20:07:11 CEST

On Tue, Aug 20, 2002 at 09:45:51AM -0500, cmpilato@collab.net wrote:
> solo turn <soloturn99@yahoo.com> writes:
> > svn seems not to obey signal handling correctly. if you press
> > "ctrl-c" it is possible to get an inconsistent working-copy state.
> >
> > maybe this is the same issue we discussed earlier in writing some
> > change completely or not (to prevent also inconsistent states in
> > cases of crashes or network timeouts).
>
> Jon Trowbridge <jon@trowbridge.org> just gave an interesting
> (non-original, he admits) suggestion regarding this. He suggested
> that we create a custom signal handler that does the following things:
>
> - unregisters itself as the signal handler!
> - prints a warning to the user "Attempting cleanup; hit Cntrl-C
> again to immediately abort()."
> - begins doing cleanup-ish things.
>
> Sounds kinda nifty to me (which is *not* to say, "I plan to begin
> implementing this now").

How does the signal handler communicate back to SVN that it should "begin
doing cleanup-ish things"??

Are you about to say, "set a global flag. various bits of SVN code here,
there, everywhere periodically checks that flag..." ??

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 20 20:02:57 2002

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.