From 208df4ddd9026e5060ac5b19afe744efdb340fd0 Mon Sep 17 00:00:00 2001 From: benoitc Date: Tue, 23 Apr 2013 08:38:03 +0200 Subject: [PATCH] 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 --- gunicorn/arbiter.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gunicorn/arbiter.py b/gunicorn/arbiter.py index 1a3f5bbf..69d0f9e7 100644 --- a/gunicorn/arbiter.py +++ b/gunicorn/arbiter.py @@ -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: