summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e7a699d)
raw | patch | inline | side by side (parent: e7a699d)
author | Mike Flisher <mike.flisher@gmail.com> | |
Sun, 22 May 2011 15:39:29 +0000 (17:39 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 22 May 2011 15:39:29 +0000 (17:39 +0200) |
This fixes problems with version 7.21.2 (and later) of libcurl that are due to
collectd being a multi-threaded program.
Signed-off-by: Florian Forster <octo@collectd.org>
collectd being a multi-threaded program.
Signed-off-by: Florian Forster <octo@collectd.org>
src/apache.c | patch | blob | history | |
src/ascent.c | patch | blob | history | |
src/bind.c | patch | blob | history | |
src/curl.c | patch | blob | history | |
src/curl_json.c | patch | blob | history | |
src/curl_xml.c | patch | blob | history | |
src/nginx.c | patch | blob | history | |
src/write_http.c | patch | blob | history |
diff --git a/src/apache.c b/src/apache.c
index 3d6d957c5c2a721a3ce328fd19e27c2439e39a8c..5f5441ff4ed7b9b4ff78b7bbce00d63333b0b6be 100644 (file)
--- a/src/apache.c
+++ b/src/apache.c
return (-1);
}
+ curl_easy_setopt (st->curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt (st->curl, CURLOPT_WRITEFUNCTION, apache_curl_callback);
curl_easy_setopt (st->curl, CURLOPT_WRITEDATA, st);
diff --git a/src/ascent.c b/src/ascent.c
index 6782fce199db3f5c9ffbbe984d81080e7e1a7cb3..993e480cb1746b0464741967eb6340921365ca7b 100644 (file)
--- a/src/ascent.c
+++ b/src/ascent.c
return (-1);
}
+ curl_easy_setopt (curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt (curl, CURLOPT_WRITEFUNCTION, ascent_curl_callback);
curl_easy_setopt (curl, CURLOPT_USERAGENT, PACKAGE_NAME"/"PACKAGE_VERSION);
curl_easy_setopt (curl, CURLOPT_ERRORBUFFER, ascent_curl_error);
diff --git a/src/bind.c b/src/bind.c
index 6e0b907f1e89203150a554b76ea0fc93312de211..6e13a8be8964d83fa475af35ff9d03ecbbb253ed 100644 (file)
--- a/src/bind.c
+++ b/src/bind.c
return (-1);
}
+ curl_easy_setopt (curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt (curl, CURLOPT_WRITEFUNCTION, bind_curl_callback);
curl_easy_setopt (curl, CURLOPT_USERAGENT, PACKAGE_NAME"/"PACKAGE_VERSION);
curl_easy_setopt (curl, CURLOPT_ERRORBUFFER, bind_curl_error);
diff --git a/src/curl.c b/src/curl.c
index a533e147b1b6e2af1dcf00ff7634667b20bf4784..31cda39a2514f8d0a1993d4482e8525dbdb35cb0 100644 (file)
--- a/src/curl.c
+++ b/src/curl.c
return (-1);
}
+ curl_easy_setopt (wp->curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt (wp->curl, CURLOPT_WRITEFUNCTION, cc_curl_callback);
curl_easy_setopt (wp->curl, CURLOPT_WRITEDATA, wp);
curl_easy_setopt (wp->curl, CURLOPT_USERAGENT,
diff --git a/src/curl_json.c b/src/curl_json.c
index 248b91b5b07eaa0043eb76c66dd1e43a19a0dae0..55d4cd539d64b083eec5a0f28e3d27580579a383 100644 (file)
--- a/src/curl_json.c
+++ b/src/curl_json.c
return (-1);
}
+ curl_easy_setopt (db->curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt (db->curl, CURLOPT_WRITEFUNCTION, cj_curl_callback);
curl_easy_setopt (db->curl, CURLOPT_WRITEDATA, db);
curl_easy_setopt (db->curl, CURLOPT_USERAGENT,
diff --git a/src/curl_xml.c b/src/curl_xml.c
index c10955cb973a803902968781cdc73573d32f46b4..61b5adedf423a4a770da06d066b1e372b767dfcb 100644 (file)
--- a/src/curl_xml.c
+++ b/src/curl_xml.c
return (-1);
}
+ curl_easy_setopt (db->curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt (db->curl, CURLOPT_WRITEFUNCTION, cx_curl_callback);
curl_easy_setopt (db->curl, CURLOPT_WRITEDATA, db);
curl_easy_setopt (db->curl, CURLOPT_USERAGENT,
diff --git a/src/nginx.c b/src/nginx.c
index 697684277a153911fdc43474cdc74bdab5b62d1e..d9529516331740741475b0baecacbc943af0700c 100644 (file)
--- a/src/nginx.c
+++ b/src/nginx.c
return (-1);
}
+ curl_easy_setopt (curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt (curl, CURLOPT_WRITEFUNCTION, nginx_curl_callback);
curl_easy_setopt (curl, CURLOPT_USERAGENT, PACKAGE_NAME"/"PACKAGE_VERSION);
curl_easy_setopt (curl, CURLOPT_ERRORBUFFER, nginx_curl_error);
diff --git a/src/write_http.c b/src/write_http.c
index ab8757ed67f151875bc806279425f3c86d971c87..22b5842a85542633b77cd68739843f40bce132c7 100644 (file)
--- a/src/write_http.c
+++ b/src/write_http.c
return (-1);
}
+ curl_easy_setopt (cb->curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt (cb->curl, CURLOPT_USERAGENT, PACKAGE_NAME"/"PACKAGE_VERSION);
headers = NULL;