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

Set std_in to NoStream on the Anoma client process #3182

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

paulcadman
Copy link
Collaborator

This PR sets std_in to NoStream on the Anoma client process.

https://hackage.haskell.org/package/process-1.6.25.0/docs/System-Process.html#t:StdStream

We do not read from the Anoma client process stdin so we do not need to open a handle to stdin.

This fixes an issue where the Anoma client stdin does not get cleaned up correctly on exit which causes subsequent input to the terminal to be corrupted.

@paulcadman paulcadman added this to the 0.6.9 milestone Nov 20, 2024
@paulcadman paulcadman self-assigned this Nov 20, 2024
Copy link
Collaborator

@janmasrovira janmasrovira left a comment

Choose a reason for hiding this comment

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

good catch

We do not read from the Anoma client process so we do not need to open a
handle to stdin.

This fixes an issue where the Anoma client stdin does not get cleaned up
correctly on exit which causes subsequent input to the terminal to be corrupted.
@paulcadman paulcadman force-pushed the fix-anoma-client-terminal-corruption branch from 15e4f75 to 348f4ec Compare November 20, 2024 15:57
@paulcadman paulcadman merged commit 19ecfa9 into main Nov 20, 2024
4 checks passed
@paulcadman paulcadman deleted the fix-anoma-client-terminal-corruption branch November 20, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants