MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _atexit_encrypt

Function _atexit_encrypt

Ragnar.py:310–316  ·  view source on GitHub ↗

Safety net: encrypt DB on process exit if auth is configured.

()

Source from the content-addressed store, hash-verified

308 # Stop individual threads (fast timeouts - systemd will SIGKILL after 5s anyway)
309 handle_exit_display(sig, frame, display_thread, exit_process=False)
310
311 if display_thread and display_thread.is_alive():
312 display_thread.join(timeout=1)
313 if ragnar_thread and ragnar_thread.is_alive():
314 ragnar_thread.join(timeout=1)
315 if web_thread and web_thread.is_alive():
316 web_thread.join(timeout=1)
317
318 logger.info("Main loop finished. Clean exit.")
319 sys.exit(0)

Callers

nothing calls this directly

Calls 1

shutdown_encryptMethod · 0.80

Tested by

no test coverage detected