
13 Aug
2002
13 Aug
'02
6:13 a.m.
For a quick workaround, if you install your own handler *after* calling startupHaskell(), you should be able to override GHC's.
The thing is, that's what I'm already doing. At least, Haskell is in charge of the execution, and does quite a lot of things before calling out to an I/O action written in C, which then sets the handler.
My best guess is that the use of signal() is incompatible with the POSIX sigaction() used by the RTS.
That's possible I guess. Could you try using sigaction() instead? Cheers, Simon