]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
When using the select based IOLoop, select can throw an error if based to many socket...
authorunknown <mgenti@.(none)>
Tue, 30 Mar 2010 13:40:17 +0000 (08:40 -0500)
committerunknown <mgenti@.(none)>
Tue, 30 Mar 2010 13:40:17 +0000 (08:40 -0500)
tornado/ioloop.py

index 572b48c20e5af95456eba031ff68e83cdbdb3635..ebdcc8c74524e39633d844df55ffd54b44eadb56 100644 (file)
@@ -197,7 +197,7 @@ class IOLoop(object):
             try:
                 event_pairs = self._impl.poll(poll_timeout)
             except Exception, e:
-                if e.errno == errno.EINTR:
+                if hasattr(e, 'errno') and e.errno == errno.EINTR:
                     _log.warning("Interrupted system call", exc_info=1)
                     continue
                 else: