You are viewing a single thread.
View all comments
42 points
*

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.

permalink
report
reply
24 points

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.

permalink
report
parent
reply
4 points

Persist everything to disk in real time. When the signal hits exit immediately.

permalink
report
parent
reply
7 points

Persist everything to disk in real time.

That’s the thing I’m trying to avoid.

permalink
report
parent
reply
3 points
*

Crash-only software. To be resilient you need some kind of ACID anyway which means that you can let go of your shutdown procedure and just send yourself SIGKILL instead.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.6K

    Monthly active users

  • 1.1K

    Posts

  • 39K

    Comments