Skip to content

Draft: Handle SIGTERM by throwing ExitFailure on the main thread

David Eichmann requested to merge DavidEichmann/ghc:davide/sigterm into master

We want resource cleanup to happen correctly (e.g. via the bracket pattern) with SIGTERM as well as SIGINT. This MR achieves that.

Open question: should we also handle SIGQUIT? What about other process ending signals?

Related issues:

#10169 #6113

Edited by Andreas Klebinger

Merge request reports