swift-server / swift-service-lifecycle

Cleanly startup and shutdown server application, freeing resources in order before exiting.
https://swiftpackageindex.com/swift-server/swift-service-lifecycle/documentation/servicelifecycle
Apache License 2.0
396 stars 38 forks source link

Add support for `SIGQUIT` #146

Closed FranzBusch closed 1 year ago

FranzBusch commented 1 year ago

Motivation

Some applications want to react to SIGQUIT which is similar to SIGINT but normally maps to a different key C-\.

Modification

This PR adds support for SIGQUIT in the UnixSignals module.

Result

Support for SIGQUIT.