Mercurial > hg > nginx
comparison src/core/ngx_cycle.c @ 6132:859ce1c41f64
Win32: fixed shm.handle loss on reload.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 27 Apr 2015 03:44:30 +0300 |
parents | 48b3d5ddfb03 |
children | af7eba90645d |
comparison
equal
deleted
inserted
replaced
6131:be3aaf9f0005 | 6132:859ce1c41f64 |
---|---|
439 if (shm_zone[i].tag == oshm_zone[n].tag | 439 if (shm_zone[i].tag == oshm_zone[n].tag |
440 && shm_zone[i].shm.size == oshm_zone[n].shm.size | 440 && shm_zone[i].shm.size == oshm_zone[n].shm.size |
441 && !shm_zone[i].noreuse) | 441 && !shm_zone[i].noreuse) |
442 { | 442 { |
443 shm_zone[i].shm.addr = oshm_zone[n].shm.addr; | 443 shm_zone[i].shm.addr = oshm_zone[n].shm.addr; |
444 #if (NGX_WIN32) | |
445 shm_zone[i].shm.handle = oshm_zone[n].shm.handle; | |
446 #endif | |
444 | 447 |
445 if (shm_zone[i].init(&shm_zone[i], oshm_zone[n].data) | 448 if (shm_zone[i].init(&shm_zone[i], oshm_zone[n].data) |
446 != NGX_OK) | 449 != NGX_OK) |
447 { | 450 { |
448 goto failed; | 451 goto failed; |