mirror of
https://github.com/nginx/nginx.git
synced 2024-12-01 03:17:17 +08:00
Win32: fixed shm.handle loss on reload.
This commit is contained in:
parent
c8aa659e45
commit
153dbf3877
@ -441,6 +441,9 @@ ngx_init_cycle(ngx_cycle_t *old_cycle)
|
||||
&& !shm_zone[i].noreuse)
|
||||
{
|
||||
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)
|
||||
!= NGX_OK)
|
||||
|
Loading…
Reference in New Issue
Block a user