aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2015-04-27 03:44:30 +0300
committerMaxim Dounin <mdounin@mdounin.ru>2015-04-27 03:44:30 +0300
commit153dbf38771abbbf5955cce0433cf2673dc3e7d9 (patch)
treead25b2522eed43eb6b3c1d624ff47724bcc8d545 /src
parentc8aa659e453c74147cde7a055c79c9f3705fc10d (diff)
downloadnginx-153dbf38771abbbf5955cce0433cf2673dc3e7d9.tar.gz
nginx-153dbf38771abbbf5955cce0433cf2673dc3e7d9.zip
Win32: fixed shm.handle loss on reload.
Diffstat (limited to 'src')
-rw-r--r--src/core/ngx_cycle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c
index eec7da592..d24245fb8 100644
--- a/src/core/ngx_cycle.c
+++ b/src/core/ngx_cycle.c
@@ -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)