[RFC] Terminate ghci process before waiting for it.#129
[RFC] Terminate ghci process before waiting for it.#129
Conversation
This change is based on the unconfirmed theory that pressing ^C repeatedly sometimes leaves ghci processes running, with the same symptoms as described in the comment near this change.
|
@fisx Is the assumption something like:
By doing a I think for me to understand all the details I would need to read up on POSIX process groups and signal handling again. In addition I'm puzzled whether masking any async exception until |
Yes, thanks for the much better explanation.
You mean, catching and dropping extra SIGINTs? that would certainly solve the problem of ghci killing my machine every now and then. The advantage of my idea is that the first ^C has an immediate effect. Of course all this is a lot less relevant if you only have test suites that run less than 3 seconds. :-) |
May be related to hspec/sensei#30.
This change is based on the unconfirmed theory that pressing ^C repeatedly sometimes leaves ghci processes running, with the same symptoms as described in the comment near this change.
Breaks the test suite, but it does have the expected and desired effect that the reaction on ^C is immediate.
Before I look at the test suite: is this worth investigating?
thanks-