-
Notifications
You must be signed in to change notification settings - Fork 8
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
Ctrl-C / SIGINT fails to cancel parent on first try #4
Comments
goodboy
added a commit
to goodboy/trio-run-in-process
that referenced
this issue
Feb 14, 2020
Control-C and/or signalling with SIGINT doesn't result in clean cancellation and teardown of a program that has spawned subproceses. These tests demonstrate this issue as is documented in ethereum#4.
This was referenced Feb 14, 2020
goodboy
added a commit
to goodboy/trio-run-in-process
that referenced
this issue
Feb 17, 2020
Control-C and/or signalling with SIGINT doesn't result in clean cancellation and teardown of a program that has spawned subproceses. These tests demonstrate this issue as is documented in ethereum#4.
This was referenced May 27, 2020
I believe this has been fixed in one of my recent commits. Now, if I
I get this immediately:
|
@gsalgado why don't you just prove it by merging the test in #5? Also, what's with the necro-bump of this repo? Aren't y'all doubling down on https://github.com/ethereum/aio-run-in-process ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What was wrong?
Trying to cancel a program with either
ctrl-c
orSIGINT
results in the underlying subprocess(es) being cancelled but the parent hangs waiting requiring another of the same signal to be sent wherein the program errors with (if triggered from apytest
run):Code that produced the error
I've submitted PR #5 as an addition to the test suite which demonstrates the issue(s).
Expected Result
Cancellation of both spawned subprocesses and the parent in the traditional trionic fashion.
I'm going to see what I can do to provide a fix for this. Imho this is an absolutely critical problem!
PS: on another note if you're looking for any collaborators on this project I'd be willing to throw in my hat. I'm extremely interested in a rock solid process launching library based around
trio
not only because I have a project based on this but also because I think a resilient process spawner is something the Python community needs in general.The text was updated successfully, but these errors were encountered: