mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Exit the process cleanly
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
3afeaad0a7
commit
890df5021b
1 changed files with 2 additions and 1 deletions
|
@ -281,13 +281,14 @@ class PubServerChannelProcess(salt.utils.process.SignalHandlingProcess):
|
|||
)
|
||||
|
||||
def run(self):
|
||||
|
||||
ioloop = tornado.ioloop.IOLoop()
|
||||
try:
|
||||
while True:
|
||||
try:
|
||||
payload = self.queue.get(False)
|
||||
except queue.Empty:
|
||||
if self._closing is True:
|
||||
break
|
||||
time.sleep(0.03)
|
||||
continue
|
||||
if payload is None:
|
||||
|
|
Loading…
Add table
Reference in a new issue