use CURLOPT_NOSIGNAL in multithreaded applications... avoids nasty SEGFAULT during Curl_resolv!

git-svn-id: http://s3fs.googlecode.com/svn/trunk@107 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
rrizun 2008-02-25 04:36:00 +00:00
parent c5d9fdb607
commit 4104189eba

View File

@ -127,6 +127,8 @@ alloc_curl_handle() {
curl_handles.pop();
}
curl_easy_reset(curl);
long signal = 1;
curl_easy_setopt(curl, CURLOPT_NOSIGNAL, signal);
long seconds = 10;
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, seconds);
return curl;