diff options
author | Mikhail Galanin <mgalanin@mimecast.com> | 2018-08-30 14:03:01 +0100 |
---|---|---|
committer | Mikhail Galanin <mgalanin@mimecast.com> | 2018-08-30 14:03:01 +0100 |
commit | 43d3cc3d8a4001c9cb65871a651fe81cbc6ee98e (patch) | |
tree | ec2a655a65f4dcc43a2359db69ad61b4a3bd528d /src/log_helper.c | |
parent | a7543072058055ff88698383967cf83f58fa663d (diff) | |
download | rspamd-43d3cc3d8a4001c9cb65871a651fe81cbc6ee98e.tar.gz rspamd-43d3cc3d8a4001c9cb65871a651fe81cbc6ee98e.zip |
[Minor] Log should not depend on config
When config is being closed, some destructors could be called, and that dtors could write into log. Hence, it is better to terminate config and only then close log. And log should not refer disposed config
Diffstat (limited to 'src/log_helper.c')
-rw-r--r-- | src/log_helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log_helper.c b/src/log_helper.c index b62593db8..01494a447 100644 --- a/src/log_helper.c +++ b/src/log_helper.c @@ -227,8 +227,8 @@ start_log_helper (struct rspamd_worker *worker) close (ctx->pair[0]); rspamd_worker_block_signals (); - rspamd_log_close (worker->srv->logger); REF_RELEASE (ctx->cfg); + rspamd_log_close (worker->srv->logger, TRUE); exit (EXIT_SUCCESS); } |