libkas: Do not close event loop after each command
Rather close the loop when terminating the kas process. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
committed by
Daniel Wagner
parent
34cf6900ca
commit
94555bb892
@@ -77,8 +77,9 @@ def create_logger():
|
||||
|
||||
def _atexit_handler(loop):
|
||||
"""
|
||||
Terminate the whole process group
|
||||
Close event loop and terminate the whole process group
|
||||
"""
|
||||
asyncio.get_event_loop().close()
|
||||
os.killpg(os.getpid(), signal.SIGTERM)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user