@cryptotaxi247 / netdata-1 / commits / 53b913367

send EXIT before exiting in freeipmi and debugfs plugins (#15140)

* freeipmi: send EXIT before exiting * debugfs: send EXIT before exiting * fix missing }

Ilya Mashchenko committed Jun 5, 2023 at 23:05 UTC 53b9133679b31a309db3a9246fe10e4eb35ce9e0
2 files changed +8 -1
collectors/debugfs.plugin/debugfs_plugin.c
+2
@@ -240,5 +240,7 @@ int main(int argc, char **argv)
240 }
241 }
242
243 + fprintf(stdout, "EXIT\n");
244 + fflush(stdout);
245 return 0;
246 }
collectors/freeipmi.plugin/freeipmi_plugin.c
+6 -1
@@ -1852,6 +1852,11 @@ int main (int argc, char **argv) {
1852 fflush(stdout);
1853
1854 // restart check (14400 seconds)
1855 - if(now_monotonic_sec() - started_t > 14400) exit(0);
1855 + if (now_monotonic_sec() - started_t > 14400) {
1856 + fprintf(stdout, "EXIT\n");
1857 + fflush(stdout);
1858 + exit(0);
1859 + }
1860 }
1861 }
1862 +