Skip to content

Commit

Permalink
Merge pull request #6 from AgoraLab/fix_process_z
Browse files Browse the repository at this point in the history
Fix process z
  • Loading branch information
boxjan authored Dec 29, 2021
2 parents 81a2937 + 3d91b04 commit 73d4e7b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions collectors/plugins.d/plugins_d.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,8 @@ void *pluginsd_main(void *ptr)
// it is not running
// allocate a new one, or use the obsolete one
if (unlikely(!cd)) {
usleep(1000); // no reason here, but it can fix problem: charts exit and become Z process

cd = callocz(sizeof(struct plugind), 1);

snprintfz(cd->id, CONFIG_MAX_NAME, "plugin:%s", pluginname);
Expand Down

0 comments on commit 73d4e7b

Please sign in to comment.