mirror of
https://github.com/nginx/nginx.git
synced 2024-11-28 16:39:00 +08:00
Core: set nginx_shared_zone name via ngx_str_set().
This commit is contained in:
parent
65f0ad22fa
commit
eb017e75cf
@ -500,8 +500,7 @@ ngx_event_module_init(ngx_cycle_t *cycle)
|
||||
#endif
|
||||
|
||||
shm.size = size;
|
||||
shm.name.len = sizeof("nginx_shared_zone") - 1;
|
||||
shm.name.data = (u_char *) "nginx_shared_zone";
|
||||
ngx_str_set(&shm.name, "nginx_shared_zone");
|
||||
shm.log = cycle->log;
|
||||
|
||||
if (ngx_shm_alloc(&shm) != NGX_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user