]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix EINTR exception handling for non-english locales.
authorBen Darnell <bdarnell@beaker.local>
Wed, 3 Feb 2010 20:05:03 +0000 (12:05 -0800)
committerBen Darnell <bdarnell@beaker.local>
Wed, 3 Feb 2010 20:05:03 +0000 (12:05 -0800)
tornado/ioloop.py

index 142face53c16e2c16fb3c5b41fae09e49c8dc5cd..35d90cd1c8affc34084fe94d9819f950ddde41a4 100644 (file)
@@ -180,7 +180,7 @@ class IOLoop(object):
             try:
                 event_pairs = self._impl.poll(poll_timeout)
             except Exception, e:
-                if e.args == (4, "Interrupted system call"):
+                if e.errno == errno.EINTR:
                     logging.warning("Interrupted system call", exc_info=1)
                     continue
                 else: