From a62cd79b85c69aea5b980f91d2c563b082b06af0 Mon Sep 17 00:00:00 2001 From: Siarhei Siamashka Date: Mon, 20 Feb 2012 23:56:51 +0200 Subject: CURLOPT_NOSIGNAL fix (borrowed from pooler's code) Prevents the miner from eventually abnormally terminating due to curl misbehaviour. --- util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util.c b/util.c index b6c3c60..837ede5 100644 --- a/util.c +++ b/util.c @@ -225,6 +225,7 @@ json_t *json_rpc_call(CURL *curl, const char *url, curl_easy_setopt(curl, CURLOPT_URL, url); curl_easy_setopt(curl, CURLOPT_ENCODING, ""); curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1); + curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1); curl_easy_setopt(curl, CURLOPT_TCP_NODELAY, 1); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, all_data_cb); curl_easy_setopt(curl, CURLOPT_WRITEDATA, &all_data); -- cgit v1.2.3-18-g5258