X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fapache.c;h=f0ab22a80047e9e3e3d367348aa556f614b0fc51;hb=7a762196fa7a4024c19ceac9b0c6918a5d8f62d5;hp=8458ce15d1c9b58bdd8c9c24220e844242443f3a;hpb=a05485da75ec42a9aa38354e0d0364885b1ecad9;p=collectd.git diff --git a/src/apache.c b/src/apache.c index 8458ce15..f0ab22a8 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 : */