diff options
author | Markos Fountoulakis <44345837+mfundul@users.noreply.github.com> | 2019-02-25 11:16:29 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-25 11:16:29 +0200 |
commit | 28d5018f31135e7991d31bf5a39ae3fafd91323a (patch) | |
tree | a5ae28777b302771899dff7151b19912f3d09c53 /daemon/main.c | |
parent | 3b28e0f5ed1ab1eb441be9bcc74de0a0722aea82 (diff) |
Fix SIGSEGV crash during shutdown of tc plugin. (#5495)
Diffstat (limited to 'daemon/main.c')
-rw-r--r-- | daemon/main.c | 2 |
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); |