• tatterdemalion@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    2 months ago

    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.

    • bleistift2@sopuli.xyzOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 months ago

      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.