Skip to content
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

Thread Hanging in _wait_for_tstate_lock elif lock.acquire(block, timeout): #93

Open
jdtsmith opened this issue Jan 2, 2021 · 0 comments

Comments

@jdtsmith
Copy link

jdtsmith commented Jan 2, 2021

If I use Ctrl-C to exit a program using aiofiles with an open file pipe, another Ctrl-C is required and the thread is hanging in _wait_for_tstate_lock elif lock.acquire(block, timeout). A common solution I've seen is to ensure the thread is marked as a daemon, so that "the entire Python program exits when only daemon threads are left".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant