X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fapache.c;h=ad5975c015bdf737860a16df41eefe4a5887414e;hb=103f05e098865196fc5f28df51e99b64fd6b5202;hp=7e4c79bbaae7432b27648a63c79e486b8c10bf22;hpb=633c3966f770e4d46651a2fe219a18d8a9907a9f;p=collectd.git diff --git a/src/apache.c b/src/apache.c index 7e4c79bb..ad5975c0 100644 --- a/src/apache.c +++ b/src/apache.c @@ -671,9 +671,18 @@ static int apache_read_host (user_data_t *user_data) /* {{{ */ return (0); } /* }}} int apache_read_host */ +static int apache_init (void) /* {{{ */ +{ + /* Call this while collectd is still single-threaded to avoid + * initialization issues in libgcrypt. */ + curl_global_init (CURL_GLOBAL_SSL); + return (0); +} /* }}} int apache_init */ + void module_register (void) { plugin_register_complex_config ("apache", config); + plugin_register_init ("apache", apache_init); } /* void module_register */ /* vim: set sw=8 noet fdm=marker : */