1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00

Fix (revert) loop exit condition

This commit is contained in:
Dmitry Stogov
2015-09-24 11:19:26 +03:00
parent 262160e0e9
commit 2d55e8c186

View File

@@ -206,7 +206,7 @@ static int create_segments(size_t requested_size, zend_shared_segment ***shared_
/* Mapping failed, wait for mapping object to get freed and retry */
CloseHandle(memfile);
memfile = NULL;
if (++map_retries < MAX_MAP_RETRIES) {
if (++map_retries >= MAX_MAP_RETRIES) {
break;
}
zend_shared_alloc_unlock_win32();