apache plugin: Call curl_global_init() from the init function.
authorFlorian Forster <octo@collectd.org>
Wed, 15 Jan 2014 22:47:33 +0000 (23:47 +0100)
committerFlorian Forster <octo@collectd.org>
Wed, 15 Jan 2014 22:47:33 +0000 (23:47 +0100)
commit5f2f969335757f31f42cd8bb7e38eb8c5fe5e56e
treeaccc90d5aafb917c7d1c36657afae943d9f3bc4d
parentddffda7a150cd3abdb6ec392b514a250e91e0c19
apache plugin: Call curl_global_init() from the init function.

This is a shot in the dark in trying to address #513. By calling this
from an init() callback, I hope to be initializing the curl and gcrypt
libraries before collectd becomes multi-threaded, avoiding the problems
described in the issue.
src/apache.c