def close(self):
"""Stops the process controller
Kill the process
"""
self.stop = True
try:
os.killpg(os.getpgid(self.process.pid), signal.SIGTERM)
except ProcessLookupError:
log_debug("Must already be dead")
else:
log_debug("Successfully killed")
ProcessController.instance = None
评论列表
文章目录