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

Re: Windows signal handler and Control-C

From: mark benedetto king <mbk_at_lowlatency.com>
Date: 2004-01-16 16:24:33 CET

On Fri, Jan 16, 2004 at 02:24:34PM +0000, Mike Mason wrote:
> Someone, recently, posted a patch to reinstall the Control-C signal
> handler after setting the "stop working" flag inside the Subversion
> client, because we suspected that a ^C ^C sequence on Windows caused the
> process to terminate immediately.
>
> Unfortunately I can't find the patch, but here's the behaviour I'm
> seeing on an unpatched 0.35.1, with a large working copy.
>

I can't find it either, but ISTR it was from Garrett Rooney. Anyway,
it was probably something a lot the patch below. Give it a try, if
you can. It would be nice to get this resolved.

Index: subversion/svnadmin/main.c
===================================================================
--- subversion/svnadmin/main.c (revision 8336)
+++ subversion/svnadmin/main.c (working copy)
@@ -43,6 +43,9 @@
 signal_handler (int unused)
 {
   cancelled = TRUE;
+#ifdef WIN32
+ apr_signal (SIGINT, signal_handler);
+#endif
 }
 
 /* Our cancellation callback. */
Index: subversion/clients/cmdline/main.c
===================================================================
--- subversion/clients/cmdline/main.c (revision 8336)
+++ subversion/clients/cmdline/main.c (working copy)
@@ -615,6 +615,9 @@
 signal_handler (int unused)
 {
   cancelled = TRUE;
+#ifdef WIN32
+ apr_signal (SIGINT, signal_handler);
+#endif
 }
 
 /* Our cancellation callback. */

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 16 16:25:07 2004

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.