From: Maxim Dounin Date: Mon, 27 Apr 2015 00:44:30 +0000 (+0300) Subject: Win32: fixed shm.handle loss on reload. X-Git-Tag: release-1.9.0~3 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=153dbf38771abbbf5955cce0433cf2673dc3e7d9;p=nginx.git Win32: fixed shm.handle loss on reload. --- 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)