summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2019-01-09 14:40:34 +0000
committerGerrit Code Review <review@openstack.org>2019-01-09 14:40:34 +0000
commite476cfbc32815353e51bd1fb136bbccfa32b8e06 (patch)
tree8f36b1236299c91c10f7019278d233d69e3cf2ab
parente8dcc42c09f0f34a94abb433cdf3daebfd8b21c9 (diff)
parent8f4f827ed3817c35ea17462277ccf3628103e811 (diff)
Merge "Clean up command sockets on stop"
-rw-r--r--zuul/lib/commandsocket.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/zuul/lib/commandsocket.py b/zuul/lib/commandsocket.py
index 2836999..96dddb6 100644
--- a/zuul/lib/commandsocket.py
+++ b/zuul/lib/commandsocket.py
@@ -55,6 +55,9 @@ class CommandSocket(object):
55 # re-entering their loop. 55 # re-entering their loop.
56 self.queue.put(b'_stop') 56 self.queue.put(b'_stop')
57 self.socket_thread.join() 57 self.socket_thread.join()
58 self.socket.close()
59 if os.path.exists(self.path):
60 os.unlink(self.path)
58 61
59 def _socketListener(self): 62 def _socketListener(self):
60 while self.running: 63 while self.running: