summaryrefslogtreecommitdiffstats
path: root/cower/set_curlopt_nosignal.patch
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2011-07-24 12:07:51 +0200
committerFlorian Pritz <bluewind@xssn.at>2011-07-24 12:07:51 +0200
commitb8c33ee22e78f48f52bfde7328d20efe73493149 (patch)
treeaf5a3a56a5094facb1c00472c0b1a3be7478eca2 /cower/set_curlopt_nosignal.patch
parent9c7f68c9ab1ed52a5c4c2cec57c71b15d2209f52 (diff)
parent34e8f8d7edc734b88753ff7cb0443f8489b02ee8 (diff)
downloadaur-packages-b8c33ee22e78f48f52bfde7328d20efe73493149.tar.gz
aur-packages-b8c33ee22e78f48f52bfde7328d20efe73493149.tar.xz
Merge branch 'master' of git://git.server-speed.net/~flo/git/aur
Diffstat (limited to 'cower/set_curlopt_nosignal.patch')
-rw-r--r--cower/set_curlopt_nosignal.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/cower/set_curlopt_nosignal.patch b/cower/set_curlopt_nosignal.patch
new file mode 100644
index 0000000..76d7456
--- /dev/null
+++ b/cower/set_curlopt_nosignal.patch
@@ -0,0 +1,22 @@
+commit 9d7537ef064a23ed57551aa04283c398fc8d07f1
+Author: Dave Reisner <d@falconindy.com>
+Date: Thu Dec 30 20:14:36 2010 -0500
+
+ set CURLOPT_NOSIGNAL on all curl handles
+
+ As per curl_easy_setopt(3), this is particularly crucial of multi
+ threaded apps (hey that's us) which use timeouts to avoid sending them
+ signals and behaving badly (e.g. causing segfaults).
+
+diff --git a/cower.c b/cower.c
+index 7ba747c..23ff9bc 100644
+--- a/cower.c
++++ b/cower.c
+@@ -585,6 +585,7 @@ CURL *curl_create_easy_handle() {
+
+ curl_easy_setopt(handle, CURLOPT_USERAGENT, COWER_USERAGENT);
+ curl_easy_setopt(handle, CURLOPT_CONNECTTIMEOUT, 10L);
++ curl_easy_setopt(handle, CURLOPT_NOSIGNAL, 1L);
+ curl_easy_setopt(handle, CURLOPT_ENCODING, "deflate, gzip");
+
+ return(handle);