diff options
author | Siarhei Siamashka <siarhei.siamashka@gmail.com> | 2012-02-20 23:56:51 +0200 |
---|---|---|
committer | Siarhei Siamashka <siarhei.siamashka@gmail.com> | 2012-02-20 23:56:51 +0200 |
commit | a62cd79b85c69aea5b980f91d2c563b082b06af0 (patch) | |
tree | a18467cc341f1458eaae818c6a91aa0203b1c960 | |
parent | b690870238b0b468355ec0d5b83c5b43b00f8aa6 (diff) |
CURLOPT_NOSIGNAL fix (borrowed from pooler's code)
Prevents the miner from eventually abnormally terminating
due to curl misbehaviour.
-rw-r--r-- | util.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |