You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Jim Jagielski <ji...@jaguNET.com> on 2000/07/08 16:13:20 UTC
Question about modules/mpm/config.m4
I have a question about this area:
if test "$mpm_explicit" = "no"; then
if test "$MPM_NAME" = "prefork" ; then
MPM_NAME="mpmt_pthread"
EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_THREADS"
Is that right? If MPM_NAME is "prefork" we reset it to mpmt_pthread?
That means the 'if' clause of the below is always enabled for prefork:
if test "$MPM_NAME" = "mpmt_pthread" ; then
EXTRA_CFLAGS="$EXTRA_CFLAGS -DMPMT_PTHREAD"
elif test "$MPM_NAME" = "dexter" ; then
EXTRA_CFLAGS="$EXTRA_CFLAGS -DDEXTER"
fi
--
===========================================================================
Jim Jagielski [|] jim@jaguNET.com [|] http://www.jaguNET.com/
"Are you suggesting coconuts migrate??"
Re: Question about modules/mpm/config.m4
Posted by rb...@covalent.net.
On Sat, 8 Jul 2000, Jim Jagielski wrote:
> I have a question about this area:
>
> if test "$mpm_explicit" = "no"; then
> if test "$MPM_NAME" = "prefork" ; then
> MPM_NAME="mpmt_pthread"
> EXTRA_CFLAGS="$EXTRA_CFLAGS -DNO_THREADS"
>
> Is that right? If MPM_NAME is "prefork" we reset it to mpmt_pthread?
> That means the 'if' clause of the below is always enabled for prefork:
>
> if test "$MPM_NAME" = "mpmt_pthread" ; then
> EXTRA_CFLAGS="$EXTRA_CFLAGS -DMPMT_PTHREAD"
> elif test "$MPM_NAME" = "dexter" ; then
> EXTRA_CFLAGS="$EXTRA_CFLAGS -DDEXTER"
> fi
I know this sounds strange. This does work, and it is correct. The
problem is that the way mpmt_pthread currently works, if you specify
NO_THREADS in CFAGS, then it emulates prefork. When I combined the MPM's
I used mpmt_pthread as a basis for my work. Rather than mess with it too
much, I left the prefok emulation working through CFLAGS="-DMPMT_PTHREAD
-DNO_THREADS". In the future I would expect that to change to just
-dPREFORK.
Ryan
_______________________________________________________________________________
Ryan Bloom rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------