[LOGICAL CHANGE] During exit do nothing in periodic
resolved a segfault in Go tlsServer
@@ -1045,6 +1045,11 @@ periodic(void *arg)
perf = checkEnv(PRESERVE_PERF_REPORTING, "true");
while (1) {
+ // we are trying to exit, do nothing
+ if (g_exitdone == TRUE) {
+ while (1) sched_yield();
+ }
+
scope_gettimeofday(&tv, NULL);
if (tv.tv_sec >= summaryTime) {
// Process dynamic config changes, if any
