Skip to content

Commit 8400f73

Browse files
committed
Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2: Avoid code duplication and don't miss env restore
2 parents 726a77c + b8cfa09 commit 8400f73

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sapi/cgi/cgi_main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2187,8 +2187,7 @@ consult the installation file that came with this distribution, or visit \n\
21872187
while (parent) {
21882188
EnterCriticalSection(&cleanup_lock);
21892189
if (cleaning_up) {
2190-
DeleteCriticalSection(&cleanup_lock);
2191-
goto parent_out;
2190+
goto parent_loop_end;
21922191
}
21932192
LeaveCriticalSection(&cleanup_lock);
21942193

@@ -2243,7 +2242,8 @@ consult the installation file that came with this distribution, or visit \n\
22432242

22442243
WaitForMultipleObjects(kids, kid_cgi_ps, FALSE, INFINITE);
22452244
}
2246-
2245+
2246+
parent_loop_end:
22472247
/* restore my env */
22482248
SetEnvironmentVariable("PHP_FCGI_CHILDREN", kid_buf);
22492249

0 commit comments

Comments
 (0)