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

Fix blocking of pty_read when there isn't pty data ready to read #107

Merged
merged 1 commit into from
Jun 10, 2021

Conversation

icankeep
Copy link
Contributor

@icankeep icankeep commented Jun 10, 2021

related issue: #106

It seems that sometimes if there is no data ready, it will also trigger the execution of this function, and blocking the entire main thread. This phenomenon is very similar to a deadlock, so another judgment is added to ptyread to avoid this situation.

@blink1073 blink1073 added the bug label Jun 10, 2021
Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

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

Successfully merging this pull request may close these issues.

2 participants