mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1: Avoid code duplication and don't miss env restore
This commit is contained in:
commit
b8cfa09657
1 changed files with 2 additions and 2 deletions
|
@ -2236,8 +2236,7 @@ consult the installation file that came with this distribution, or visit \n\
|
|||
while (parent) {
|
||||
EnterCriticalSection(&cleanup_lock);
|
||||
if (cleaning_up) {
|
||||
DeleteCriticalSection(&cleanup_lock);
|
||||
goto parent_out;
|
||||
goto parent_loop_end;
|
||||
}
|
||||
LeaveCriticalSection(&cleanup_lock);
|
||||
|
||||
|
@ -2293,6 +2292,7 @@ consult the installation file that came with this distribution, or visit \n\
|
|||
WaitForMultipleObjects(kids, kid_cgi_ps, FALSE, INFINITE);
|
||||
}
|
||||
|
||||
parent_loop_end:
|
||||
/* restore my env */
|
||||
SetEnvironmentVariable("PHP_FCGI_CHILDREN", kid_buf);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue