[GHC] #10081: SIGTERM ignored when process has been detached from terminal
GHC
ghc-devs at haskell.org
Thu Feb 12 00:57:48 UTC 2015
#10081: SIGTERM ignored when process has been detached from terminal
-------------------------------------+-------------------------------------
Reporter: nakal | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: libraries/unix | Version: 7.8.3
Resolution: | Keywords:
Operating System: FreeBSD | Architecture: x86_64
Type of failure: Incorrect result | (amd64)
at runtime | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions:
-------------------------------------+-------------------------------------
Comment (by rwbarton):
Okay, I tried running it under strace: the `write` from `hPutStrLn` is
failing with `EIO`, which then gets turned into an exception, meaning
`throwTo tid ExitSuccess` is never run. Since signals are handled in a new
thread, if the signal handler raises an exception, it is reported to
stderr (which, in this case, also fails with `EIO`), and the program
continues to run.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10081#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list