Stas Bekman <[EMAIL PROTECTED]> wrote:
Scot Martin wrote:
> mp1.99.10-dev Apache 2.0.47 Solaris 8
>
> I'm building a single-purpose, high-performance, multi-threaded application
> server using the above and have run into problems with forking and cleanup
> of old httpd instances. Yes, I have to fork and exec as I have to call
> some legacy C code and then set up comms between the exec'd process and
> Apache.
>
>
> My first problem comes when loading the server heavily I occasionally see
> an instance that forked properly, but the child never wakes up and runs.<snip>
See if using Apache::SubProcess helps.
> Lastly, cleanup_for_exec() doesn't seem to work - with tracing on I can see
> that we get into APR::Pool but the return status is always zero. I've
> tried $r->APR::Pool::cleanup_for_exec() and a bald
> &APR::Pool::cleanup_for_exec().
[...]
There is no $r->cleanup_for_exec() in mp2, there is
APR::Pool::cleanup_for_exec(), which accepts no arguments, returns no result
and does:<snip>