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

[PATCH]: Let users cancel out of command line client immediately if they signal 3 times

From: Daniel Berlin <dberlin_at_dberlin.org>
Date: 2006-03-13 03:33:30 CET

I've had a bunch of GCC user complaints about SVN not exiting for 10-30
seconds after the user hits ctrl-c.

Most people expect it to exit immediately.

At the risk of restarting the IRC argument about whether the solution to
this problem is to insert cancellation checks pretty much everywhere
(which is what it would probably take on some repos to get that kind of
interactivity), I'm submitting the following patch.

Basically, it's a compromise. It allows users who really want to just
cancel, to just cancel, by hitting ctrl-c (or some other caught signal)
three times.

In this case we just exit with an error status immediately by calling
exit (1).

(better exit strategies are of course, appreciated, i just didn't see
what i should be doing there other than this).

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Mon Mar 13 03:33:47 2006

This is an archived mail posted to the Subversion Dev mailing list.