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

RE: Subversion 0.19.1 released.

From: <rbb_at_rkbloom.net>
Date: 2003-03-13 17:04:07 CET

On Thu, 13 Mar 2003, Sander Striker wrote:

> > From: sussman@collab.net [mailto:sussman@collab.net]
> > Sent: Thursday, March 13, 2003 4:53 PM
>
> > Branko Čibej <brane@xbc.nu> writes:
> >
> > > On Windows, we can't fork; the solution is to make the server
> > > threded and to spin off worker threads. I haven't -- er, that is,
> > > nobody has had time to do that yet.
> >
> > Wow... so apr_proc_fork() does nothing on win32?
> >
> > Perhaps we should file a task to rewrite svnserve to use apr_thread_*
> > calls instead...?
>
> Not 'instead'. Not every platform has threads. You can check to
> see if it does with #if APR_HAS_THREADS. You end up implementing both
> the fork and the thread solution. That's the only way to make it
> work on all platforms.

I should probably mention that my boss at covalent once wrote fork() for
Windows. He gave it to Will Rowe and I to look at with an eye towards
fixing a few bugs and getting it into APR. However, as Will started to
really dig into the code, he noticed that it wouldn't work for _MOST_
Windows apps. The problem was DLLs. Basically, the DLL had to be written
to work with fork(). Obviously, no native DLLs are. This is why cygwin
can work, they don't have to deal with native DLLs.

BTW, I once investigated every way to Sunday to get fork() working on
Windows. It was a major goal of mine, but it turns out to be impossible.
:-(

Ryan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Mar 13 16:45:10 2003

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.