firepear / petrel

It's like SQLite, but for networking
MIT License
20 stars 1 forks source link

Add config option for signal handling #62

Closed firepear closed 2 years ago

firepear commented 3 years ago

Adding signal handling (e.g. SIGKILL/SIGTERM) to an app that uses petrel is a bulky and possibly confusing piece of boilerplate. It might be useful to add a config option which would have that handled internally, with the final action of petrel to be sending a message to the app that it has received a shutdown signal.

Actually, this last part already happens, but its meaning (and what the app might want to do because of it) would change slightly.

firepear commented 2 years ago

I just kinda duplicated this, but in a far more thought-out way. Closing this one.