Cleanly terminate logger on cleanup
This commit is contained in:
		| @@ -697,7 +697,7 @@ else: | |||||||
|  |  | ||||||
| # Cleanup function | # Cleanup function | ||||||
| def cleanup(): | def cleanup(): | ||||||
|     global zkhandler, update_timer, d_domain |     global logger, zkhandler, update_timer, d_domain | ||||||
|  |  | ||||||
|     logger.out('Terminating pvcnoded and cleaning up', state='s') |     logger.out('Terminating pvcnoded and cleaning up', state='s') | ||||||
|  |  | ||||||
| @@ -761,6 +761,8 @@ def cleanup(): | |||||||
|         pass |         pass | ||||||
|  |  | ||||||
|     logger.out('Terminated pvc daemon', state='s') |     logger.out('Terminated pvc daemon', state='s') | ||||||
|  |     del logger | ||||||
|  |  | ||||||
|     os._exit(0) |     os._exit(0) | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user