aboutsummaryrefslogtreecommitdiff
path: root/lib/easy.c
diff options
context:
space:
mode:
authorZdenek Pavlas <zpavlas@redhat.com>2013-03-11 14:57:07 +0100
committerKamil Dudka <kdudka@redhat.com>2013-03-12 10:58:20 +0100
commit57ccdfa8d2bb6275388223f4676cd623ebd01697 (patch)
tree2e36708a0905d011b78582090ec063ea0fbea440 /lib/easy.c
parent491e026ccda0e60975fa6e2e9cf3ccca37e18f7b (diff)
curl_global_init: accept the CURL_GLOBAL_ACK_EINTR flag
The flag can be used in pycurl-based applications where using the multi interface would not be acceptable because of the performance lost caused by implementing the select() loop in python. Bug: http://curl.haxx.se/bug/view.cgi?id=1168 Downstream Bug: https://bugzilla.redhat.com/919127
Diffstat (limited to 'lib/easy.c')
-rw-r--r--lib/easy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 2e747bb28..2739598ef 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -262,6 +262,8 @@ CURLcode curl_global_init(long flags)
}
#endif
+ Curl_ack_eintr = flags & CURL_GLOBAL_ACK_EINTR;
+
init_flags = flags;
/* Preset pseudo-random number sequence. */