Skip to content

Clush: use os.read() in stdin thread #463

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

Merged
merged 12 commits into from
Oct 29, 2021
Merged

Clush: use os.read() in stdin thread #463

merged 12 commits into from
Oct 29, 2021

Conversation

thiell
Copy link
Collaborator

@thiell thiell commented Oct 22, 2021

Work around Python 3 threading bug https://bugs.python.org/issue42717
when stdin is blocked in read() at interpreter shutdown by using
select() before read().

Fixes #461.

Work around Python 3 threading bug https://bugs.python.org/issue42717
when stdin is blocked in read() at interpreter shutdown by using
select() before read().

Fixes #461.
@thiell thiell requested a review from degremont October 22, 2021 17:29
@degremont
Copy link
Collaborator

Don't know if i understood all the side effects of this patch bug would be nice to have a test for that tricky case

@thiell
Copy link
Collaborator Author

thiell commented Oct 23, 2021

testing travis

@thiell thiell closed this Oct 23, 2021
@thiell thiell reopened this Oct 23, 2021
@thiell thiell closed this Oct 24, 2021
@thiell thiell reopened this Oct 24, 2021
@thiell thiell closed this Oct 24, 2021
@thiell thiell reopened this Oct 24, 2021
@thiell thiell self-assigned this Oct 25, 2021
@thiell thiell added this to the 1.8.4 milestone Oct 25, 2021
Work around Python 3 threading bug https://bugs.python.org/issue42717
when stdin is blocked in read() at interpreter shutdown by using
os.read() with stdin file descriptor.

Fixes #461.
@thiell thiell changed the title Clush: use select() in stdin thread Clush: use os.read() in stdin thread Oct 28, 2021
@thiell thiell merged commit 74c3a10 into cea-hpc:master Oct 29, 2021
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

Successfully merging this pull request may close these issues.

Fatal Python error: could not acquire lock for <_io.BufferedReader name='<stdin>'> at interpreter shutdown, possibly due to daemon threads
3 participants