[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: <cmpilato_at_collab.net>
Date: 2002-08-20 16:45:51 CEST

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").

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Aug 20 16:46:54 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.