Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- installTerminationHandler :: IO ()
- data Terminated = Terminated
Documentation
installTerminationHandler :: IO () Source #
Install a signal handler that initiates a controlled shutdown on receiving SIGTERM by throwing an asynchronous exception at the main thread. Must be called from the main thread.
It is a noop on Windows.
data Terminated Source #
Terminated is an asynchronous exception, thrown when
SIGTERM is received. It's to kill
what UserInterrupt
is to Ctrl-C.
Instances
Exception Terminated Source # | |
Defined in Distribution.Client.Signal toException :: Terminated -> SomeException # fromException :: SomeException -> Maybe Terminated # displayException :: Terminated -> String # | |
Show Terminated Source # | |
Defined in Distribution.Client.Signal showsPrec :: Int -> Terminated -> ShowS # show :: Terminated -> String # showList :: [Terminated] -> ShowS # |