Skip to content

Conversation

@YO4
Copy link
Contributor

@YO4 YO4 commented Dec 9, 2025

dup2() closes @hConsoleHandle/@hConsoleInputHandle when overwriting stdin/stdout.
ruby redirection mechanism does this.

Using closed handle should be avoided.
Since reline cannot detect this, pre-duplicate and use them instead.

fixes #827
also covers #545 #676 , replaces #734

YO4 added 2 commits December 9, 2025 21:08
The Ruby redirection mechanism closes @hConsoleHandle/@hConsoleInputHandle.
Since reline cannot detect this, pre-duplicate and use them instead.
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.

Reline hangs on Windows 11 when previously calling Open3

1 participant