From: Heng Li Date: Wed, 20 Nov 2013 16:23:02 +0000 (-0500) Subject: ignore signal X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=abfe6990de5328e3ebe5ceead735aef7add93c97;p=klib.git ignore signal --- diff --git a/kurl.c b/kurl.c index 7f5dd9c..1f5e892 100644 --- a/kurl.c +++ b/kurl.c @@ -156,6 +156,7 @@ kurl_t *kurl_open(const char *url, kurl_opt_t *opt) curl_easy_setopt(ku->curl, CURLOPT_URL, url); curl_easy_setopt(ku->curl, CURLOPT_WRITEDATA, ku); curl_easy_setopt(ku->curl, CURLOPT_VERBOSE, 0L); + curl_easy_setopt(ku->curl, CURLOPT_NOSIGNAL, 1L); curl_easy_setopt(ku->curl, CURLOPT_WRITEFUNCTION, write_cb); if (opt && opt->usrpwd) curl_easy_setopt(ku->curl, CURLOPT_USERPWD, opt->usrpwd);