jonschoning / espial

Espial is an open-source, web-based bookmarking server.
GNU Affero General Public License v3.0
793 stars 27 forks source link

handle SIGTERM on linux & fix dockerfile #47

Closed jonschoning closed 1 year ago

jonschoning commented 1 year ago

fixes https://github.com/jonschoning/espial/issues/46

jonschoning commented 1 year ago

on SIGTERM, now an exception will be thrown to the main thread, instead of immediate exit, allowing finalizers to run. SIGINT is already handled similarly by the GHC rts.