From 3a2478ee0cd719be79161ed2c36f916d58bc3bfc Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 18 Jul 2021 18:57:44 -0400 Subject: [PATCH] Cleanly terminate logger on cleanup --- node-daemon/pvcnoded/Daemon.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/node-daemon/pvcnoded/Daemon.py b/node-daemon/pvcnoded/Daemon.py index 6d0e10f8..781ea8e1 100644 --- a/node-daemon/pvcnoded/Daemon.py +++ b/node-daemon/pvcnoded/Daemon.py @@ -697,7 +697,7 @@ else: # Cleanup function def cleanup(): - global zkhandler, update_timer, d_domain + global logger, zkhandler, update_timer, d_domain logger.out('Terminating pvcnoded and cleaning up', state='s') @@ -761,6 +761,8 @@ def cleanup(): pass logger.out('Terminated pvc daemon', state='s') + del logger + os._exit(0)