Skip to content

Clean up temp file on Ctrl+C / SIGTERM #4

Description

@scott

Currently the temp file (mdp-<hash>.html in os.TempDir()) is never cleaned up — it lingers until reboot or manual deletion. In watch mode this matters more because the process stays alive and the file should be removed on graceful shutdown (SIGINT/SIGTERM).

Tracked from the live-reload implementation PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions