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:
if instance.conn in rlist:
instance._read()
except select.error: # 'Interrupted system call'
pass
finally:
cls._selecting[0] = False
for instance in cls._instances: