Greg Stein <gstein@lyra.org> writes:
> > 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..." ??
Communicate back to SVN? Huh? I don't know much about signal
handlers, but I assume that there is some signal handling function
that is registered as such in main(). That function would just run
svn_client_cleanup directly. Perhaps my ignorance is showing through
in a glaring way now, though...
---------------------------------------------------------------------
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:54:32 2002