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

Re: Diffs for running svnserve as a Win32 service

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-02-24 23:13:56 CET

On 2/24/06, Arlie Davis <adavis@stonestreetone.com> wrote:
> Ok, so tell me what you would consider sufficient for this patch. Again, I
> would LOVE to be able to shut down svnserve cleanly, and I have already
> structured the code around this, so that any future developer that DOES
> provide clean shutdown can see clearly how to integrate it with the service
> support.
>
> So tell me how to do it.

Off the top of my head, the apr_socket_accept needs to be changed to a
poll/accept system, where you poll to see if there's anything to
accept, then accept. The poll should have a timeout so that when you
finish polling you can check to see if we have been told to shut down.
 The actual shutdown command would come from a signal handler or
something like that.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Feb 24 23:16:40 2006

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.