Skip to content
Snippets Groups Projects
Commit d361901b authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

curl: Set CURLOPT_NOSIGNAL

Otherwise using curl is not safe in multi-threaded applications
because it installs a SIGALRM handler.
parent 037ff4e7
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment