]> git.kaiwu.me - klib.git/commitdiff
ignore signal
authorHeng Li <lh3@me.com>
Wed, 20 Nov 2013 16:23:02 +0000 (11:23 -0500)
committerHeng Li <lh3@me.com>
Wed, 20 Nov 2013 16:23:02 +0000 (11:23 -0500)
kurl.c

diff --git a/kurl.c b/kurl.c
index 7f5dd9cb6352a0b677fb0c7ceed41145535b53bc..1f5e8921e722367ca11b480934e2bc22585860aa 100644 (file)
--- 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);