X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcurl_json.c;h=55d4cd539d64b083eec5a0f28e3d27580579a383;hb=e35f3c5c634216860f14586a7d17232022d8b588;hp=248b91b5b07eaa0043eb76c66dd1e43a19a0dae0;hpb=a24baf2ad70837ea46cacbfee6e03537cf284ad5;p=collectd.git diff --git a/src/curl_json.c b/src/curl_json.c index 248b91b5..55d4cd53 100644 --- a/src/curl_json.c +++ b/src/curl_json.c @@ -535,6 +535,7 @@ static int cj_init_curl (cj_t *db) /* {{{ */ return (-1); } + curl_easy_setopt (db->curl, CURLOPT_NOSIGNAL, 1); curl_easy_setopt (db->curl, CURLOPT_WRITEFUNCTION, cj_curl_callback); curl_easy_setopt (db->curl, CURLOPT_WRITEDATA, db); curl_easy_setopt (db->curl, CURLOPT_USERAGENT,