postmortem
Tagged #postmortem
RSS FEED-
Your cleanup handler did not run, and you will never be told
An EXIT trap restored something important. Closing the terminal window sent SIGHUP, which terminates without running EXIT traps, and the important thing stayed lost. The fix was not a bigger trap — it was to stop treating cleanup as the place correctness lives.
-
The day my own cleanup tool deleted 612 MB of live work
A cleanup feature ate a session that was still open, on my own machine, the day it shipped. Three independent guards had to fail for that to happen — and the deepest one was that the tool was showing a machine's guess instead of the name I had typed myself.