Win32: fixed shm.handle loss on reload.
This commit is contained in:
parent
3b43a7a702
commit
a5e3b66ce3
1 changed files with 3 additions and 0 deletions
|
@ -441,6 +441,9 @@ ngx_init_cycle(ngx_cycle_t *old_cycle)
|
||||||
&& !shm_zone[i].noreuse)
|
&& !shm_zone[i].noreuse)
|
||||||
{
|
{
|
||||||
shm_zone[i].shm.addr = oshm_zone[n].shm.addr;
|
shm_zone[i].shm.addr = oshm_zone[n].shm.addr;
|
||||||
|
#if (NGX_WIN32)
|
||||||
|
shm_zone[i].shm.handle = oshm_zone[n].shm.handle;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (shm_zone[i].init(&shm_zone[i], oshm_zone[n].data)
|
if (shm_zone[i].init(&shm_zone[i], oshm_zone[n].data)
|
||||||
!= NGX_OK)
|
!= NGX_OK)
|
||||||
|
|
Loading…
Reference in a new issue