Skip to content

Commit 73d4e7b

Browse files
authored
Merge pull request #6 from AgoraLab/fix_process_z
Fix process z
2 parents 81a2937 + 3d91b04 commit 73d4e7b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

collectors/plugins.d/plugins_d.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ void *pluginsd_main(void *ptr)
358358
// it is not running
359359
// allocate a new one, or use the obsolete one
360360
if (unlikely(!cd)) {
361+
usleep(1000); // no reason here, but it can fix problem: charts exit and become Z process
362+
361363
cd = callocz(sizeof(struct plugind), 1);
362364

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

0 commit comments

Comments
 (0)