curl: Set CURLOPT_NOSIGNAL

Otherwise using curl is not safe in multi-threaded applications
because it installs a SIGALRM handler.
This commit is contained in:
Eelco Dolstra 2016-02-22 13:13:19 +01:00
parent 037ff4e70a
commit d361901bfe

View file

@ -114,6 +114,8 @@ struct Curl
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, progressCallback_);
curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, (void *) &curl);
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0);
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
}
~Curl()