[Haskell-cafe] Why is GHCi so hard to kill?
onepoint at starurchin.org
Thu May 18 07:09:07 UTC 2017
If I put ghci into a loop by entering "last $ repeat ()" then the
process is impossible to interrupt or kill except with "kill -KILL".
(Although it can be stopped with Ctrl-Z.) "kill -TERM" does not work.
The same is true if I run a runhaskell script containing "main =
putStrLn $ show $ last $ repeat $ ()".
Is there a reason for ghci being so unkillable? It is generally
considered a bad idea for a program to ignore the TERM signal.
(Details: Debian Linux Jessie 8.8, GHC 8.0.2 (built from source).)
More information about the Haskell-Cafe