mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 22:16:16 +02:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue