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:
Jan Kiszka
2017-06-28 12:43:52 +02:00
committed by Daniel Wagner
parent 34cf6900ca
commit 94555bb892
2 changed files with 3 additions and 7 deletions

View File

@@ -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)