diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-16 14:27:39 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-01-16 14:27:39 +0000 |
commit | 5e6a385fb64338a773a8ed643d7810be0481fc94 (patch) | |
tree | 919e6a8d32508f4fa3100e5c8cf2395180e64ff5 /src/rspamd.c | |
parent | c4958798d0058d349fa33a1ed4dd3bede1dab730 (diff) | |
download | rspamd-5e6a385fb64338a773a8ed643d7810be0481fc94.tar.gz rspamd-5e6a385fb64338a773a8ed643d7810be0481fc94.zip |
[CritFix] Fix descriptors leak on reload
MFH: true
Diffstat (limited to 'src/rspamd.c')
-rw-r--r-- | src/rspamd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index a6142614b..627230d48 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -256,6 +256,9 @@ config_logger (rspamd_mempool_t *pool, gpointer ud) rspamd_set_logger (rspamd_main->cfg, g_quark_try_string ("main"), &rspamd_main->logger, rspamd_main->server_pool); + rspamd_log_close_priv (rspamd_main->logger, + rspamd_main->workers_uid, rspamd_main->workers_gid); + if (rspamd_log_open_priv (rspamd_main->logger, rspamd_main->workers_uid, rspamd_main->workers_gid) == -1) { fprintf (stderr, "Fatal error, cannot open logfile, exiting\n"); |