From: Ben Darnell Date: Wed, 3 Feb 2010 20:05:03 +0000 (-0800) Subject: Fix EINTR exception handling for non-english locales. X-Git-Tag: v1.0.0~76^2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20361993368b87c607d450484d32bc305dbd2146;p=thirdparty%2Ftornado.git Fix EINTR exception handling for non-english locales. --- diff --git a/tornado/ioloop.py b/tornado/ioloop.py index 142face53..35d90cd1c 100644 --- a/tornado/ioloop.py +++ b/tornado/ioloop.py @@ -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: