Mercurial > hg > nginx
comparison src/core/ngx_syslog.h @ 7277:7f9935f07fe9
Syslog: install cleanup handler only once.
If a socket was re-opened due to an error (02c2352d5b01 and fa0e093b64d7),
additional cleanup handler was installed each time.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Mon, 14 May 2018 22:50:57 +0300 |
parents | a6a2016b8e31 |
children | 29adacffdefa |
comparison
equal
deleted
inserted
replaced
7276:a90f7812de35 | 7277:7f9935f07fe9 |
---|---|
7 #ifndef _NGX_SYSLOG_H_INCLUDED_ | 7 #ifndef _NGX_SYSLOG_H_INCLUDED_ |
8 #define _NGX_SYSLOG_H_INCLUDED_ | 8 #define _NGX_SYSLOG_H_INCLUDED_ |
9 | 9 |
10 | 10 |
11 typedef struct { | 11 typedef struct { |
12 ngx_pool_t *pool; | |
13 ngx_uint_t facility; | 12 ngx_uint_t facility; |
14 ngx_uint_t severity; | 13 ngx_uint_t severity; |
15 ngx_str_t tag; | 14 ngx_str_t tag; |
16 | 15 |
17 ngx_addr_t server; | 16 ngx_addr_t server; |