From d361901bfe50f43ed1b94e89c95718b072f07821 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 22 Feb 2016 13:13:19 +0100 Subject: curl: Set CURLOPT_NOSIGNAL Otherwise using curl is not safe in multi-threaded applications because it installs a SIGALRM handler. --- src/libstore/download.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libstore/download.cc') diff --git a/src/libstore/download.cc b/src/libstore/download.cc index 01ce1ea2fd4c..e754e82fb27f 100644 --- a/src/libstore/download.cc +++ b/src/libstore/download.cc @@ -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() -- cgit 1.4.1