[Haskell-cafe] Kill forked threads in ghci

Silvio Frischknecht silvio.frischi at gmail.com
Mon Aug 17 17:57:49 UTC 2015


I've come across that problem too.

I found this on stackoverflow.

http://stackoverflow.com/questions/24999636/is-there-a-way-to-kill-all-forked-threads-in-a-ghci-session-without-restarting-i


If you're doing the forking, you can simply write a function forkIO
that registers threadId's in some global MVar. Otherwise I don't know.


Silvio


More information about the Haskell-Cafe mailing list