Welcome! Log In Create A New Profile

Advanced

[nginx] Win32: fixed shm.handle loss on reload.

Maxim Dounin
April 27, 2015 01:06PM
details: http://hg.nginx.org/nginx/rev/859ce1c41f64
branches:
changeset: 6132:859ce1c41f64
user: Maxim Dounin <mdounin@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)

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Win32: fixed shm.handle loss on reload.

Maxim Dounin 413 April 27, 2015 01:06PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 189
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready