Socket: Prevent crash caused when a signal is received while using select. Closes GH-477.

This commit is contained in:
Valentin Lorentz 2013-06-29 12:40:45 +02:00
parent d0476c9eb2
commit 75654a4544

View File

@ -164,6 +164,8 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
for instance in cls._instances: for instance in cls._instances:
if instance.conn in rlist: if instance.conn in rlist:
instance._read() instance._read()
except select.error: # 'Interrupted system call'
pass
finally: finally:
cls._selecting[0] = False cls._selecting[0] = False
for instance in cls._instances: for instance in cls._instances: