From 153dbf38771abbbf5955cce0433cf2673dc3e7d9 Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Mon, 27 Apr 2015 03:44:30 +0300 Subject: [PATCH] Win32: fixed shm.handle loss on reload. --- src/core/ngx_cycle.c | 3 +++ 1 file changed, 3 insertions(+) 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)