@bleistift2@sopuli.xyz to Programmer Humor@programming.devEnglish • 4 months agoThinking I could clean up my files in a SIGINT handlersopuli.xyzimagemessage-square26fedilinkarrow-up1220arrow-down12
arrow-up1218arrow-down1imageThinking I could clean up my files in a SIGINT handlersopuli.xyz@bleistift2@sopuli.xyz to Programmer Humor@programming.devEnglish • 4 months agomessage-square26fedilink
minus-square@bleistift2@sopuli.xyzOPlinkfedilinkEnglish8•4 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.
minus-square@chonglibloodsport@lemmy.worldlinkfedilink3•4 months agoPersist everything to disk in real time. When the signal hits exit immediately.
minus-square@bleistift2@sopuli.xyzOPlinkfedilinkEnglish1•4 months ago Persist everything to disk in real time. That’s the thing I’m trying to avoid.
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.
Persist everything to disk in real time. When the signal hits exit immediately.
That’s the thing I’m trying to avoid.