[Mono-dev] [PATCH] mod_mono: startup problems with Apache 1.3
Joshua Tauberer
tauberer at for.net
Sat Nov 12 10:19:09 EST 2005
Robert Jordan wrote:
> The attached patch fixes the problem by not starting
> xsp from apache's child_init handler. It's now started
> on demand during the first request.
How about something more 'creative' to only start mod-mono-server once.
One of the preforked processes should decide that it's going to be the
one to do the initial forking. I can't find a way for a child process
to figure out if it's, e.g., the first-spawned process, but that would
be a nice way to do it.
Or, they can all check for the presence of "/tmp/mod_mono-forker" (or
some name determined by the pid of the main apache process?), read a pid
in it, if the pid is valid then it's the pid of the process doing
forking, otherwise write its own pid in it and do forking (with all of
that locked properly, and deleting the file on shutdown).
--
- Joshua Tauberer
http://taubz.for.net
** Nothing Unreal Exists **
More information about the Mono-devel-list
mailing list