diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2023-06-05 23:05:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-05 23:05:18 +0300 |
commit | 53b9133679b31a309db3a9246fe10e4eb35ce9e0 (patch) | |
tree | 65f1b015e7eeb5e2ebaee2b70f3186d72e0b4f03 | |
parent | 4c5830179888709503a466a14ae5952afd1dff6a (diff) |
send EXIT before exiting in freeipmi and debugfs plugins (#15140)
* freeipmi: send EXIT before exiting
* debugfs: send EXIT before exiting
* fix missing }
-rw-r--r-- | collectors/debugfs.plugin/debugfs_plugin.c | 2 | ||||
-rw-r--r-- | collectors/freeipmi.plugin/freeipmi_plugin.c | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/collectors/debugfs.plugin/debugfs_plugin.c b/collectors/debugfs.plugin/debugfs_plugin.c index f75765acf9..9713be3204 100644 --- a/collectors/debugfs.plugin/debugfs_plugin.c +++ b/collectors/debugfs.plugin/debugfs_plugin.c @@ -240,5 +240,7 @@ int main(int argc, char **argv) } } + fprintf(stdout, "EXIT\n"); + fflush(stdout); return 0; } diff --git a/collectors/freeipmi.plugin/freeipmi_plugin.c b/collectors/freeipmi.plugin/freeipmi_plugin.c index bcc5139f35..98538e81b8 100644 --- a/collectors/freeipmi.plugin/freeipmi_plugin.c +++ b/collectors/freeipmi.plugin/freeipmi_plugin.c @@ -1852,6 +1852,11 @@ int main (int argc, char **argv) { fflush(stdout); // restart check (14400 seconds) - if(now_monotonic_sec() - started_t > 14400) exit(0); + if (now_monotonic_sec() - started_t > 14400) { + fprintf(stdout, "EXIT\n"); + fflush(stdout); + exit(0); + } } } + |