summaryrefslogtreecommitdiffstats
path: root/src/plugins_d.h
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@gmail.com>2018-03-27 21:28:21 +0000
committerFederico Ceratto <federico.ceratto@gmail.com>2018-03-27 21:28:21 +0000
commitd4dd00f58a502c9ca4b63e36ce6bc7a9945dc63c (patch)
treefaac99f51f182bb8c0a03e95e393d421ac9ddf42 /src/plugins_d.h
parentNew upstream version 1.9.0+dfsg (diff)
downloadnetdata-d4dd00f58a502c9ca4b63e36ce6bc7a9945dc63c.tar.xz
netdata-d4dd00f58a502c9ca4b63e36ce6bc7a9945dc63c.zip
New upstream version 1.10.0+dfsgupstream/1.10.0+dfsg
Diffstat (limited to 'src/plugins_d.h')
-rw-r--r--src/plugins_d.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/plugins_d.h b/src/plugins_d.h
index 4d708386..692d7cae 100644
--- a/src/plugins_d.h
+++ b/src/plugins_d.h
@@ -26,8 +26,8 @@ struct plugind {
char fullfilename[FILENAME_MAX+1]; // with path
char cmd[PLUGINSD_CMD_MAX+1]; // the command that it executes
- pid_t pid;
- pthread_t thread;
+ volatile pid_t pid;
+ netdata_thread_t thread;
size_t successful_collections; // the number of times we have seen
// values collected from this plugin
@@ -36,8 +36,8 @@ struct plugind {
// without collecting values
int update_every; // the plugin default data collection frequency
- volatile int obsolete; // do not touch this structure after setting this to 1
- volatile int enabled; // if this is enabled or not
+ volatile sig_atomic_t obsolete; // do not touch this structure after setting this to 1
+ volatile sig_atomic_t enabled; // if this is enabled or not
time_t started_t;
@@ -47,7 +47,6 @@ struct plugind {
extern struct plugind *pluginsd_root;
extern void *pluginsd_main(void *ptr);
-extern void pluginsd_stop_all_external_plugins(void);
extern size_t pluginsd_process(RRDHOST *host, struct plugind *cd, FILE *fp, int trust_durations);
extern int pluginsd_split_words(char *str, char **words, int max_words);