X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=php-fcgi-graceful.patch;h=6cf0d2c4f0f295317ce601e6614312675e9a6798;hb=refs%2Ftags%2Fauto%2Fti%2Fphp-5_3_8-7;hp=ec0702060d6c4aaa3c6e5f024338d8467ea9256c;hpb=7a7f999ccf1556e83b981bce18248764cd809b84;p=packages%2Fphp.git diff --git a/php-fcgi-graceful.patch b/php-fcgi-graceful.patch index ec07020..6cf0d2c 100644 --- a/php-fcgi-graceful.patch +++ b/php-fcgi-graceful.patch @@ -1,5 +1,25 @@ ---- php5.3-200711071330/sapi/cgi/cgi_main.c 2007-11-01 13:32:38.000000000 +0200 -+++ php5.3-200711071330-graceful2/sapi/cgi/cgi_main.c 2007-11-07 22:12:10.025949153 +0200 +Related links: + +http://bugs.php.net/bug.php?id=43224 this patch + +http://bugs.php.net/bug.php?id=41593 +http://bugs.php.net/bug.php?id=36158 +http://php-fpm.anight.org/ + +test script too: +\n"; +$i = 0; +while ($i < 35) { + echo (++$i), "
\n"; + flush(); + sleep(1); +} +echo "end!
\n"; +?> + +--- php5.3-200711090930/sapi/cgi/cgi_main.c 2007-11-01 13:32:38.000000000 +0200 ++++ php5.3-200711090930-graceful/sapi/cgi/cgi_main.c 2007-11-09 13:34:22.974559020 +0200 @@ -101,6 +101,9 @@ */ static int parent = 1; @@ -45,10 +65,8 @@ /* don't catch our signals */ - sigaction(SIGTERM, &old_term, 0); -- sigaction(SIGQUIT, &old_quit, 0); -- sigaction(SIGINT, &old_int, 0); -+ sigaction(SIGQUIT, &act, &old_quit); -+ sigaction(SIGINT, &act, &old_int); + sigaction(SIGQUIT, &old_quit, 0); + sigaction(SIGINT, &old_int, 0); + + /* call graceful shutdown handler for SIGTERM */ + act.sa_flags = 0;