diff options
author | Valentin Bartenev <vbart@nginx.com> | 2012-12-23 19:36:52 +0400 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2012-12-23 19:36:52 +0400 |
commit | a8ffed57510bab2a7143eb81aa3565a4bdcb8678 (patch) | |
tree | 301479cba5e394fb9a5165f4274a037c56ba56b5 /src/core/ngx_conf_file.h | |
parent | df71cd1125390512bbd421b0218b4bbc0e1d5209 (diff) |
Reopening log files code moved to a separate function.
The code refactored in a way to call custom handler that can do appropriate
cleanup work (if any), like flushing buffers, finishing compress streams,
finalizing connections to log daemon, etc..
Diffstat (limited to 'src/core/ngx_conf_file.h')
-rw-r--r-- | src/core/ngx_conf_file.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/core/ngx_conf_file.h b/src/core/ngx_conf_file.h index 64a9e8fc8..237e6ecea 100644 --- a/src/core/ngx_conf_file.h +++ b/src/core/ngx_conf_file.h @@ -91,17 +91,8 @@ struct ngx_open_file_s { ngx_fd_t fd; ngx_str_t name; - u_char *buffer; - u_char *pos; - u_char *last; - -#if 0 - /* e.g. append mode, error_log */ - ngx_uint_t flags; - /* e.g. reopen db file */ - ngx_uint_t (*handler)(void *data, ngx_open_file_t *file); + void (*flush)(ngx_open_file_t *file, ngx_log_t *log); void *data; -#endif }; |