From: Jérôme Loyet Date: Wed, 10 Nov 2010 23:54:14 +0000 (+0000) Subject: - don't call shutdown functions after child ends softly, let the master process call... X-Git-Tag: php-5.3.4RC1~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07abcdc031a1225a6dc875a5f6f8abf5272d702c;p=php - don't call shutdown functions after child ends softly, let the master process call them --- diff --git a/sapi/fpm/fpm/fpm_main.c b/sapi/fpm/fpm/fpm_main.c index a1862b559d..1ce4cda0d5 100644 --- a/sapi/fpm/fpm/fpm_main.c +++ b/sapi/fpm/fpm/fpm_main.c @@ -1919,8 +1919,10 @@ fastcgi_request_done: out: SG(server_context) = NULL; - php_module_shutdown(TSRMLS_C); - sapi_shutdown(); + if (parent) { + php_module_shutdown(TSRMLS_C); + sapi_shutdown(); + } #ifdef ZTS tsrm_shutdown();