let the VM close the sockets on exit

Closing sockets when stopping the arbiter was also closing unix sockets
if any because they aren't attached to a specific process. So remove it
and let the vm close them if needed. This change fix the reload of the
binary.

fix #476
This commit is contained in:
benoitc 2013-04-23 08:38:03 +02:00
parent 8eda51267c
commit 208df4ddd9

View File

@ -323,12 +323,6 @@ class Arbiter(object):
:attr graceful: boolean, If True (the default) workers will be
killed gracefully (ie. trying to wait for the current connection)
"""
for l in self.LISTENERS:
try:
l.close()
except Exception:
pass
self.LISTENERS = []
sig = signal.SIGQUIT
if not graceful: