[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 20:54:58 CEST

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

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.