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.4.0alpha1~191^2~702 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2c55a138d6e73671d579a97500a873aff4621ea;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 02259f74c8..7f20ced9c5 100644 --- a/sapi/fpm/fpm/fpm_main.c +++ b/sapi/fpm/fpm/fpm_main.c @@ -1917,8 +1917,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();