Skip to content

Prevent infinite loop in main#356

Open
clubby789 wants to merge 1 commit intogentilkiwi:masterfrom
clubby789:master
Open

Prevent infinite loop in main#356
clubby789 wants to merge 1 commit intogentilkiwi:masterfrom
clubby789:master

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