httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jerenkra...@ebuilt.com>
Subject Re: how to debug worker mpm httpd with gdb?
Date Tue, 12 Mar 2002 23:37:20 GMT
On Tue, Mar 12, 2002 at 03:06:13PM -0800, Ryan Bloom wrote:
> How would you fix this?  By having the worker MPM go into a single
> threaded, single process mode with -X?  That won't actually solve the
> problem, because the OS will still create the manager thread.  This is
> just part of the pain of doing threaded debugging on Unix.
> 

-X should only create two threads: the manager thread and a single
worker thread.  However, IIRC, it'll create ThreadsPerChild for that
one process.  It should limit itself to just one worker thread.  

By limiting us to two httpd-created threads, it should be somewhat
easier for the debugger/user to determine which thread they should
attach to.  IMHO, the current solution of creating one process with
a normal amount of workers isn't very nice.  -- justin


Mime
View raw message