tidalcycles / Tidal

Pattern language
http://tidalcycles.org/
GNU General Public License v3.0
2.22k stars 254 forks source link

Zombie ghc processes #780

Open yaxu opened 3 years ago

yaxu commented 3 years ago

A few windows users have reported ghc processes being left behind. A typical report:

i installed tidal and it's deps using the choclatey thingy, and it works great - but i've noticed that, when i finish playing and close out supercollider and atom, there is a process running in my task manager called "ghc" that remains running and uses a very high amount of cpu until i manually end it. Is this normal?

There's a couple of processes that are forked, probably without being managed properly. Some simple tidying up might well solve this.

yaxu commented 3 years ago

Following #813, it seems that `forkIO is broken an we should use "concurrently" from the async library instead. Probably worth the extra dependency. Will need a bit of reorganising though, "concurrently" takes two functions as input, runs them concurrently, and if one fails the other is cancelled.