# apache and MSHUTDOWN

- Thread: https://externals.io/message/36182
- Original archive: https://news-web.php.net/php.internals/36182
- Started by atiware@gmx.net on 2008-03-17T19:43:48+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #36182 — atiware@gmx.net — 2008-03-17T19:43:48+00:00

URL: https://externals.io/message/36182#36182

hi,

what is the correct behavior, if apache killing _idle_ child processes
in an environment where:
apache prefork_mpm
php loaded as apache module
php loads a module with extension=xy.so

should be the msshutdown function called for each httpd child or only
once if the whole httpd server shuts down?

thanks for clarifying this.

Attila Soki

---

## #36187 — Antony Dovgal — 2008-03-18T08:48:01+00:00

URL: https://externals.io/message/36182#36187 · In reply to: #36182

> hi,
> 
> what is the correct behavior, if apache killing _idle_ child processes
> in an environment where:
> apache prefork_mpm
> php loaded as apache module
> php loads a module with extension=xy.so
> 
> should be the msshutdown function called for each httpd child or only
> once if the whole httpd server shuts down?

Since Apache children are separate processes, they have their own shutdown 
sequences and MSHUTDOWN is called for each child (which is pretty easy to check, btw).

-- 
Wbr, 
Antony Dovgal

---

## #36201 — atiware@gmx.net — 2008-03-18T22:28:33+00:00

URL: https://externals.io/message/36182#36201 · In reply to: #36187

> 
> > […]
> 
> Since Apache children are separate processes, they have their own shutdown 
> sequences and MSHUTDOWN is called for each child (which is pretty easy to check, btw).


thanks for your answer.

i asked this, because i trying get a rid of a bug. if apache 2.2.8,
php5.2.5 and php-java-bridge used thogether the apache childs begin to
freeze.

the apache-team say this is an php bug, javabridge team says this is an
php or apache bug.

please look these threads:

"internal dummy connections blocking httpd"
https://issues.apache.org/bugzilla/show_bug.cgi?id=43966

"php-java-bridge bug and maybe a working patch"
http://sourceforge.net/mailarchive/forum.php?thread_name=1205435208.2906.45.camel%40kukac&forum_name=php-java-bridge-users


so, where is the bug?

thanks.


Best regards,

Attila Soki
