-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background threads can survive ^C #16
Comments
I have seen this many times with processes that start a (ghc compiled Haskell) subprocesses. I don't have all the details available right now, but from what I remember, this happens when you try to write to a redirected/captured handle in the subprocess where the reading end has been closed in the parent process. Something like:
This results in an infinite loop: 4/5/4/5/4/5/4/5/... |
I think it's unlikely that this is a bug in If it was through Specifically, in the parent only close any pipe reading ends after |
I honestly have no idea whether this is a problem in
HSpec
,hedgehog
, orhspec-hedgehog
, so I figured I'd start here. I'm running a small test suite testing pure code (so the code being tested doesn't fork anything). Sometimes, the generated test cases are much too large (a bug in my test suite), causing execution to take longer than I want to wait. When I hit^C
, I get back to my shell immediately. Unfortunately, some background thread keeps going in the background, seemingly indefinitely, burning lots of CPU, and I have to kill it separately. Any guesses?The text was updated successfully, but these errors were encountered: