X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/10a64d33f744b0b04592fce080053a8ae3ee3a49..c9a5cbf917b6c208b30670bf85de2d4c4b14e3cc:/src/curl_download.c diff --git a/src/curl_download.c b/src/curl_download.c index fe7774a5..afb4723f 100644 --- a/src/curl_download.c +++ b/src/curl_download.c @@ -162,6 +162,7 @@ int curl_download_uri ( const char *uri, FILE *f, DownloadMapOptions *options, D } if (vik_verbose) curl_easy_setopt ( curl, CURLOPT_VERBOSE, 1 ); + curl_easy_setopt ( curl, CURLOPT_NOSIGNAL, 1 ); // Yep, we're a multi-threaded program so don't let signals mess it up! curl_easy_setopt ( curl, CURLOPT_URL, uri ); curl_easy_setopt ( curl, CURLOPT_WRITEDATA, f ); curl_easy_setopt ( curl, CURLOPT_WRITEFUNCTION, curl_write_func); @@ -216,7 +217,7 @@ int curl_download_uri ( const char *uri, FILE *f, DownloadMapOptions *options, D else res = DOWNLOAD_NO_ERROR; } else { - g_warning("%s: http response: %ld for uri %s (time_condition = %ld)\n", __FUNCTION__, response, uri, file_options->time_condition); + g_warning("%s: http response: %ld for uri %s\n", __FUNCTION__, response, uri); res = DOWNLOAD_ERROR; } } else {