summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorMarkos Fountoulakis <44345837+mfundul@users.noreply.github.com>2019-02-25 11:16:29 +0200
committerGitHub <noreply@github.com>2019-02-25 11:16:29 +0200
commit28d5018f31135e7991d31bf5a39ae3fafd91323a (patch)
treea5ae28777b302771899dff7151b19912f3d09c53 /daemon
parent3b28e0f5ed1ab1eb441be9bcc74de0a0722aea82 (diff)
Fix SIGSEGV crash during shutdown of tc plugin. (#5495)
Diffstat (limited to 'daemon')
-rw-r--r--daemon/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/main.c b/daemon/main.c
index e93e97caac..97cd162a8f 100644
--- a/daemon/main.c
+++ b/daemon/main.c
@@ -198,6 +198,8 @@ void cancel_main_threads() {
}
}
+ netdata_exit = 1;
+
while(found && max > 0) {
max -= step;
info("Waiting %d threads to finish...", found);