bleistift2@sopuli.xyz to Programmer Humor@programming.devEnglish · 2 months agoThinking I could clean up my files in a SIGINT handlersopuli.xyzexternal-linkmessage-square8fedilinkarrow-up16arrow-down10
arrow-up16arrow-down1external-linkThinking I could clean up my files in a SIGINT handlersopuli.xyzbleistift2@sopuli.xyz to Programmer Humor@programming.devEnglish · 2 months agomessage-square8fedilink
minus-squaretatterdemalion@programming.devlinkfedilinkarrow-up1·edit-22 months agoYou are never guaranteed to be able to do anything during a crash. You are better off handling these kinds of edge cases in a recovery phase during the start of your app.
minus-squarebleistift2@sopuli.xyzOPlinkfedilinkEnglisharrow-up1·2 months agoIt’s not a crash. It’s a graceful shutdown. I expected that to also shutdown my app gracefully. I’m actually trying to store the program state that hasn’t been persisted yet to disk. Good luck doing that after the next boot.
You are never guaranteed to be able to do anything during a crash. You are better off handling these kinds of edge cases in a recovery phase during the start of your app.
It’s not a crash. It’s a graceful shutdown. I expected that to also shutdown my app gracefully.
I’m actually trying to store the program state that hasn’t been persisted yet to disk. Good luck doing that after the next boot.