Send KILL to minode process
This commit is contained in:
parent
154ac3643e
commit
5c7bbed0f5
|
@ -1,6 +1,7 @@
|
|||
"""Launching an external app with the network queue"""
|
||||
|
||||
import atexit
|
||||
import logging
|
||||
import signal
|
||||
import subprocess
|
||||
|
||||
|
@ -23,4 +24,9 @@ class MinodeProcess(object):
|
|||
|
||||
def stop(self):
|
||||
self.process.send_signal(signal.SIGTERM)
|
||||
self.process.wait(10)
|
||||
try:
|
||||
self.process.wait(10)
|
||||
except:
|
||||
logger = logging.getLogger('default')
|
||||
logger.warning('Failed to stop process', exc_info=True)
|
||||
self.process.send_signal(signal.SIGKILL)
|
||||
|
|
Reference in New Issue
Block a user