[yum-commits] urlgrabber/grabber.py

zpavlas at osuosl.org zpavlas at osuosl.org
Wed Dec 18 12:04:16 UTC 2013


 urlgrabber/grabber.py |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 42b5945c99d92d55b5d401f2d934fe8fcc19f98b
Author: Zdenek Pavlas <zpavlas at redhat.com>
Date:   Mon Nov 4 15:32:43 2013 +0100

    Tell curl to return immediately on ctrl-c. BZ 1017491

diff --git a/urlgrabber/grabber.py b/urlgrabber/grabber.py
index 03fa1ba..579c2ff 100644
--- a/urlgrabber/grabber.py
+++ b/urlgrabber/grabber.py
@@ -1903,6 +1903,8 @@ class PyCurlFileObject(object):
             urllib.addinfourl, via. urllib.URLopener.* """
         return self.url
         
+# tell curl to return immediately on ctrl-c
+pycurl.global_init(pycurl.GLOBAL_DEFAULT | pycurl.GLOBAL_ACK_EINTR)
 _curl_cache = pycurl.Curl() # make one and reuse it over and over and over
 
 def reset_curl_obj():


More information about the Yum-commits mailing list