[FPM] when to call extensions MINIT and MSHUTDOWN
| From: | Jérôme Loyet | Date: | Thu, 11 Nov 2010 00:01:32 +0000 |
| Subject: | [FPM] when to call extensions MINIT and MSHUTDOWN | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-50136@lists.php.net to get a copy of this message | ||
Hi guys,
I'm sure when FPM should call extensions MINIT and MSHUTDOWN functions.
MINIT is called once by the master process after it forks any
children. It's done by calling php_module_startup() in
cgi_sapi_module.startup().
MSHUTDOWN is also called by the master process before exiting and
after it kills all its children. It's done by calling
php_module_shutdown_wrapper();
Is it normal behaviour ? Or should MINIT and MSHUTDOWN be also called
in each child process somehow ?
Thanks
++ Jerome