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

Re: Sharing SVN-Repository between Linux/x86 and WinNT

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2004-01-07 14:32:41 CET

On Jan 7, 2004, at 5:01 AM, Mike Mason wrote:

> Garrett Rooney wrote:
>> For the 'svn' process we do catch the signal, it's how the
>> cancellation stuff works. Repeated signals may not be caught (I
>> don't think we reset the signal handler after it fires, and IIRC some
>> systems require that), and in those cases (hiting control-c multiple
>> times) you can still kill the process, but if you hit control-c once
>> it should let you exit cleanly. If it doesn't that is a bug.
> I've seen exactly this on the Windows svn client -- Control-C doesn't
> return immediately (locks are being released or something) and if you
> hit it again the process stops immediately and requires "svn cleanup".

Interesting. Does this patch fix the problem?

Index: subversion/clients/cmdline/main.c
--- subversion/clients/cmdline/main.c (revision 8181)
+++ subversion/clients/cmdline/main.c (working copy)
@@ -612,9 +612,13 @@

  /* A signal handler to support cancellation. */
  static void
-sig_int (int unused)
+sig_int (int sig)
    cancelled = TRUE;
+ /* reset the signal handler because some operating systems reset it
+ * it fires. */
+ apr_signal (sig, sig_int);

  /* Our cancellation callback. */

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 7 14:33:31 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.