summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2010-01-28 10:38:14 +0000
committerAntony Dovgal <tony2001@php.net>2010-01-28 10:38:14 +0000
commit799b3b4f4abbccf32700389cb185e87ae6c1e362 (patch)
treebddc8ee40e4ad348d5d0b00abdaa506cf80b774c
parentba75007a04923ca468336c66e2d78f7545fe0f93 (diff)
downloadphp-git-799b3b4f4abbccf32700389cb185e87ae6c1e362.tar.gz
fcgi_init() must be executed in the parent, so that every child would not
initialize itself anew
-rw-r--r--sapi/fpm/fpm/fpm_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/fpm/fpm/fpm_main.c b/sapi/fpm/fpm/fpm_main.c
index 3f3ccecd36..fffa609cc8 100644
--- a/sapi/fpm/fpm/fpm_main.c
+++ b/sapi/fpm/fpm/fpm_main.c
@@ -1529,6 +1529,8 @@ int main(int argc, char *argv[])
fcgi_request request;
char *fpm_config = NULL;
+ fcgi_init();
+
#if 0 && defined(PHP_DEBUG)
/* IIS is always making things more difficult. This allows
* us to stop PHP and attach a debugger before much gets started */