[nginx] Win32: fixed shm.handle loss on reload.
Maxim Dounin
mdounin at mdounin.ru
Mon Apr 27 17:04:51 UTC 2015
details: http://hg.nginx.org/nginx/rev/859ce1c41f64
branches:
changeset: 6132:859ce1c41f64
user: Maxim Dounin <mdounin at mdounin.ru>
date: Mon Apr 27 03:44:30 2015 +0300
description:
Win32: fixed shm.handle loss on reload.
diffstat:
src/core/ngx_cycle.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c
--- 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)
More information about the nginx-devel
mailing list