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

Prevent infinite loop in main #356

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

clubby789
Copy link

In contexts with no usable stdin (for instance, PSRemoting), the prompt would loop forever. This patch checks the return value of fgetws and breaks if it indicates an error in reading.

In contexts with no usable `stdin` (for instance, PSRemoting), the prompt would loop forever. This patch checks the return value of `fgetws` and breaks if it indicates an error in reading.
@T35R6braPwgDJKq
Copy link

images

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.

2 participants