httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <>
Subject Re: some Win32 thoughts
Date Mon, 17 Nov 1997 16:13:38 GMT
I'd like to have os/foo/http_main, and anything common between the two
copies put into a common file main/foo.c.  The two mains are completely
different, and as we move forward with 2.0 we'll have more process models. 
http_main is essentially the process model for apache, at least that's its
main function. 

Things like mutexes and shared mem should be split off into other modules
under os/foo and stop using static variables, for example, mod_rewrite
needs mutexes too.  There are other needs for shared memory.  It screams

This is something that should be left for 2.0 though in my opinion.  I
started weeding my way through http_main once a few weeks ago, but it's
too scary to do now.


On Sun, 16 Nov 1997, Alexei Kosut wrote:

> A few random thoughts on the current organization of the Win32 source:
> I still don't like the whole dummy.c/main-in-a-DLL thing. For one thing,
> it precludes the inclusion of ApacheCore.dll in some other program. A few
> months ago, we discussed renaming the Win32 main() function to
> apache_main() or something, and changing dummy.c to os/win32/main.c, which
> just called apache_main(). But it was never done. It still makes a lot of
> sense to me; anyone else?
> Also; http_main.c still confuses the heck out of me. There are two copies
> of a fair number of things. I wonder how much trouble it would be to split
> the file along the MULTITHREAD #ifdef that spans most of the file, and
> create a seperate http_main_mt.c file with the multithreaded/Win32 stuff.
> Just some random thoughts, now that I have an NT box to play on again.
> -- Alexei Kosut <> <>
>    Stanford University, Class of 2001

View raw message