[Haskell-cafe] pthread_kill missing?
s.clover at gmail.com
Thu Nov 19 00:26:18 EST 2009
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.
More information about the Haskell-Cafe