#2301: Proper handling of SIGINT/SIGQUIT
------------------------------------------+---------------------------------
Reporter: duncan | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.0.2
Component: libraries/process | Version: 6.12.3
Resolution: | Keywords:
Testcase: | Blockedby:
Difficulty: Unknown | Os: Unknown/Multiple
Blocking: | Architecture: Unknown/Multiple
Failure: Incorrect result at runtime |
------------------------------------------+---------------------------------
Comment(by simonmar):
Replying to [comment:21 mcandre]:
> @simonmar: Thanks for clearing that up. Could you supply the correct
code to cause the main process to quit for SIGINT?
It happens by default - if you don't install a handler, the main thread
gets the `UserInterrupt` exception for SIGINT. If you want to do it with
an explicit handler, you need to get the `ThreadId` for the main thread
and use `throwTo` to send it an exception.
> P.S. I didn't expect to use trac like Stack Overflow; I just thought
this was a bug.
Yes - the [http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
mailing list] would be a better place for this.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2301#comment:22>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs