This could have been a problem with doveadm-server processes if they had
service_count>1, because doveadm unloads all plugins between commands.
process_read_io_stats(stats_r);
user_trans_stats_get(suser, stats_r);
}
+
+void mail_stats_fill_global_deinit(void)
+{
+ if (proc_io_fd != -1)
+ i_close_fd(&proc_io_fd);
+}
void mail_stats_add_transaction(struct mail_stats *stats,
const struct mailbox_transaction_stats *trans_stats);
+void mail_stats_fill_global_deinit(void);
+
#endif
{
if (global_stats_conn != NULL)
stats_connection_unref(&global_stats_conn);
+ mail_stats_fill_global_deinit();
mail_storage_hooks_remove(&stats_mail_storage_hooks);
stats_unregister(&mail_stats_item);
}