Re: apr mmap/ & shm/ problem.

2005-06-29 Thread Bruce Korb
Michael Vergoz wrote: > Hi Bruce, > > Yes Thank you! > because you must align the page to the biggest you can. ?? The problem is is that no matter how you align the thing, if the last byte of the file is the last byte of a page, then the next byte is unmapped. Consequently, when "strlen(3C)" t

Re: apr mmap/ & shm/ problem.

2005-06-29 Thread Bruce Korb
Michael Vergoz wrote: > Bruce, > > > ret = size; // ret = 0x2001 > if((ret%_apr_mem_page_size) != 0) { // 0x0001 > ret -= (ret%_apr_mem_page_size); // ret -= 0x0001 = 0x2000 > ret += _apr_mem_page_size*map->pager; // ret += 0x1000*PAGER > }

Re: Adverse behavior from SIG_IGN for SIGHUP and SIGCLD???

2003-01-23 Thread Bruce Korb
T Ford wrote: > > What adverse behavior if any will I see on linux if I have a module that forks, and >immediately calls signal(SIGHUP, SIG_IGN) and signal(SIGCLD, SIG_IGN) when using the >worker MPM? It will be propagated to everything you spawn off. Most programs presume that they can catch c

Re: Emacs stanza?

2002-01-03 Thread Bruce Korb
Rodent of Unusual Size wrote: > It ... would save us the inevitable and repetitious > pain of style-fixup patches and their effects on people's > work-in-process.. Other ASF projects do this (such as > PHP), so it wouldn't be a new departure. Another approach, used by postgress, is to have a st

Re: Debugging help, please?

2002-01-02 Thread Bruce Korb
Thomas Eibner wrote: > > On Wed, Jan 02, 2002 at 02:24:41PM -0800, Bruce Korb wrote: > > I'll see what I can do tonight, when I get home. Thanks. > > I'm not really sure I've ever been able to capture a > > child with gdb, though. It's easy with Unix

Re: Debugging help, please?

2002-01-02 Thread Bruce Korb
Thomas Eibner wrote: > Try recompiling Apache with CFLAGS=-g and then start it in single > child mode in gdb: > > $ gdb /path/to/bin/httpd > (gdb) run -X > > .. does it help? I'll see what I can do tonight, when I get home. Thanks. I'm not really sure I've ever been able to capture a child w

Debugging help, please?

2002-01-02 Thread Bruce Korb
Hi, I'm trying to figure out how to use GDB or any debugger from within a cgi program started by Apache under Linux. I tried the obvious: #! /bin/sh DISPLAY=:0.0 xterm -e gdb /path/to/bin/exe to no avail, so I was hoping for a hint here :-). The more simplistic approach of cloning the en