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

Re: Ctrl-C out of username/password prompt

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-03-22 23:39:57 CET

On Mon, 2004-03-22 at 15:42, Brian Mathis wrote:
> I've noticed that I can't use Ctrl-C to break out of a username/passwd
> prompt, using the svn command line client. Usually, it's because I've
> su-ed to a different account, and don't realize which account I'm in.
> Is there any reason why this Ctrl-C is being captured? Why can't I just
> cancel it?

The svn commandline client traps control-C's and handles them with its
own signal handler (so that your working copy doesn't end up

The problem here is that the prompting function (which is reading your
keystrokes) isn't checking to see if Ctrl-C has been noticed by the
signal handler.

At the moment, there's no way for that to happen, since the proper
signal/cancellation func isn't even being passed into the prompting
func. Perhaps we could add a new prompting API in svn 1.1 that takes
such an argument.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 22 23:40:23 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.