summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
Diffstat (limited to 'linux')
-rw-r--r--linux/request.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/request.cpp b/linux/request.cpp
index 0c5eb4ac16..651dcd2d15 100644
--- a/linux/request.cpp
+++ b/linux/request.cpp
@@ -78,6 +78,11 @@ void Request::request(void *ptr) {
CURL *curl = nullptr;
if ((curl = pthread_getspecific(key)) == nullptr) {
curl = curl_easy_init();
+
+ // stopgap to avoid libcurl crashes:
+ // see https://stackoverflow.com/q/9191668
+ curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
+
pthread_setspecific(key, curl);
}