diff options
author | Vladimir Kobal <vlad@prokk.net> | 2020-05-20 09:30:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 09:30:12 +0300 |
commit | 98c7260d929a2f6ad2aabb4b27f0d77d49f6cae8 (patch) | |
tree | 2f9d031655c1d6ec9cf2a93e7fb7b1ad11931bfb /exporting/exporting_engine.h | |
parent | b8e2a6fd0f2f4c6d4fa21e313e24e5e07519e5c0 (diff) |
Prepare the main cleanup function for the exporting engine (#9099)
Diffstat (limited to 'exporting/exporting_engine.h')
-rw-r--r-- | exporting/exporting_engine.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/exporting/exporting_engine.h b/exporting/exporting_engine.h index bdf58ce757..e567676fec 100644 --- a/exporting/exporting_engine.h +++ b/exporting/exporting_engine.h @@ -180,6 +180,8 @@ struct instance { size_t index; struct instance *next; struct engine *engine; + + volatile sig_atomic_t exited; }; struct engine { @@ -192,6 +194,8 @@ struct engine { int mongoc_initialized; struct instance *instance_root; + + volatile sig_atomic_t exit; }; extern struct instance *prometheus_exporter_instance; |