httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: [PATCH] -DNO_DETACH and/or apr_proc_detach() confusion?
Date Tue, 02 Apr 2002 02:07:28 GMT
Aaron Bannert <aaron@clove.org> writes:

> On Mon, Apr 01, 2002 at 05:23:07PM -0500, Jeff Trawick wrote:
> > as far as error reporting:
> > 
> >   the error is written to the log, not to stderr, so you don't see it
> 
> Can we correct this so there is immediate response on stderr?
> 
> > as far as what I want to do:
> > 
> >   I just want to run httpd in the foreground (e.g., from gdb); should
> >   I be doing something other than
> > 
> >      gdb prefix/bin/httpd
> >      break foo
> >      r -DNO_DETACH
> > 
> >   ?
> 
> This is working for me (or so it seems). Perhaps 'foo' is never
> called in the parent?

it isn't called in the parent... that's why I wanted to use
-DNO_DETACH :)

note that -DNO_DETACH from gdb is doomed...  setsid() will fail (at
least with my normal environment)...  -DNO_DETACH doesn't work for you
from gdb, you just hit your breakpoint before the failure point

I'll forget about it for now (but I will commit a cleanup of
apr_proc_detach() which won't change the semantics).  For the long
term I guess I want -DFOREGROUND and appropriate support in
apr_proc_detach().

-- 
Jeff Trawick | trawick@attglobal.net
Born in Roswell... married an alien...

Mime
View raw message