forked from lix-project/lix
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:
parent
037ff4e70a
commit
d361901bfe
|
@ -114,6 +114,8 @@ struct Curl
|
||||||
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, progressCallback_);
|
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, progressCallback_);
|
||||||
curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, (void *) &curl);
|
curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, (void *) &curl);
|
||||||
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0);
|
curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0);
|
||||||
|
|
||||||
|
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
~Curl()
|
~Curl()
|
||||||
|
|
Loading…
Reference in a new issue