Mercurial > hg > nginx-vendor-0-7
annotate src/os/unix/ngx_shmem.h @ 490:e66f886a8305 NGINX_0_7_57
nginx 0.7.57
*) Bugfix: a segmentation fault occurred in worker process, if the
ngx_http_image_filter_module errors were redirected to named
location; the bug had appeared in 0.7.56.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 12 May 2009 00:00:00 +0400 |
parents | 549994537f15 |
children |
rev | line source |
---|---|
154 | 1 |
2 /* | |
3 * Copyright (C) Igor Sysoev | |
4 */ | |
5 | |
6 | |
236 | 7 #ifndef _NGX_SHMEM_H_INCLUDED_ |
8 #define _NGX_SHMEM_H_INCLUDED_ | |
154 | 9 |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 | |
14 | |
15 typedef struct { | |
16 u_char *addr; | |
17 size_t size; | |
480 | 18 ngx_str_t name; |
154 | 19 ngx_log_t *log; |
480 | 20 ngx_uint_t exists; /* unsigned exists:1; */ |
154 | 21 } ngx_shm_t; |
22 | |
23 | |
24 ngx_int_t ngx_shm_alloc(ngx_shm_t *shm); | |
25 void ngx_shm_free(ngx_shm_t *shm); | |
26 | |
27 | |
236 | 28 #endif /* _NGX_SHMEM_H_INCLUDED_ */ |