From a2c55a138d6e73671d579a97500a873aff4621ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Loyet?= Date: Wed, 10 Nov 2010 23:54:14 +0000 Subject: [PATCH] - don't call shutdown functions after child ends softly, let the master process call them --- sapi/fpm/fpm/fpm_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); -- 2.50.1