MCPcopy Create free account
hub / github.com/FastLED/FastLED / cleanup_and_exit

Function cleanup_and_exit

ci/util/pio_package_daemon.py:762–778  ·  view source on GitHub ↗

Clean up daemon state and exit.

()

Source from the content-addressed store, hash-verified

760
761
762def cleanup_and_exit() -> None:
763 """Clean up daemon state and exit."""
764 logging.info("Daemon shutting down")
765
766 # Remove PID file
767 try:
768 PID_FILE.unlink(missing_ok=True)
769 except KeyboardInterrupt as ki:
770 handle_keyboard_interrupt(ki)
771 raise
772 except Exception as e:
773 logging.error(f"Failed to remove PID file: {e}")
774
775 # Set final status
776 update_status(DaemonState.IDLE, "Daemon shut down")
777
778 sys.exit(0)
779
780
781def run_daemon_loop() -> None:

Callers 2

signal_handlerFunction · 0.85
run_daemon_loopFunction · 0.85

Calls 5

update_statusFunction · 0.85
unlinkMethod · 0.80
infoMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected