Add one more curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1);