Commit c6ac9222 authored by Martín Ferrari's avatar Martín Ferrari

Fix error when handling EINTR

parent 0157c0f1
...@@ -141,6 +141,7 @@ class Server(object): ...@@ -141,6 +141,7 @@ class Server(object):
try: try:
line = self._rfd.readline() line = self._rfd.readline()
except IOError, e: except IOError, e:
line = None
if e.errno != errno.EINTR: if e.errno != errno.EINTR:
raise raise
break break
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment