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

Re: svn commit: r1727621 - in /subversion/trunk/subversion: svn/svn.c svnadmin/svnadmin.c svnbench/svnbench.c svnfsfs/svnfsfs.c svnlook/svnlook.c svnrdump/svnrdump.c svnsync/svnsync.c

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Mon, 01 Feb 2016 11:20:04 +0000

Philip Martin <philip.martin_at_wandisco.com> writes:

> That change is broken for two reasons:
>
> - the same handler is used for all those signals but we always exit via
> SIGINT
>
> - except apr_signal does not return APR_SUCCESS so we never exit via
> SIGINT.

Fixed by r1727916.

To see the effect of this run the following at a sh prompt:

  while :;do echo sleep;sleep 3;echo log;svn log http://svn.apache.org/repos/asf;done

Using control-C to send SIGINT will exit the loop only if sent while
sleep is running. A SIGINT during log will cancel the svn command but
the loop will continue and a second SIGINT during sleep will be needed
to exit the loop.

-- 
Philip Martin
WANdisco
Received on 2016-02-01 12:20:23 CET

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.