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

Re: backgrounding 'svn log' over serf

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Wed, 19 Dec 2012 20:46:36 +0000

Lieven Govaerts <lgo_at_apache.org> writes:

> On Ubuntu I can reproduce this issue at the first try, On Mac OS X not at all.
>
> Attached patch to serf fixes the issue for me.
>
> [..]
>
> Lieven
>
> Index: context.c
> ===================================================================
> --- context.c (revision 1701)
> +++ context.c (working copy)
> @@ -289,6 +289,11 @@ apr_status_t serf_context_run(
>
> if ((status = apr_pollset_poll(ps->pollset, duration, &num,
> &desc)) != APR_SUCCESS) {
> + /* EINTR indicates a handled signal happened during the poll call,
> + ignore, the application can safely retry. */
> + if (APR_STATUS_IS_EINTR(status))
> + return APR_SUCCESS;
> +
> /* ### do we still need to dispatch stuff here?
> ### look at the potential return codes. map to our defined
> ### return values? ...

That will because BSD always restarts the call. I suppose a Linux
application that set SA_RESTART would not see the problem either.

-- 
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Received on 2012-12-19 21:47:16 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.