Gabor Greif wrote:
Because I'd like to eventually send signals from outside (e.g. a shell)
too. This is in fact a stripped-down version of a real program written in C
mainly to demonstrate how much easier it is to get the same functionality
in Haskell.

Much easier then to install a signal handler the usual way? This signal handler can in turn use standard asynchronous exceptions to send signals on to the appropriate forkIOed threads... Of course this is a different mechanism, but it feels much more idiomatic vis a vis haskell concurrency and the GHC runtime.

--S
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to