Skip to content

Close unused stdin for noninteractive local commands - #579

Open
OskarEichler wants to merge 1 commit into
capistrano:masterfrom
OskarEichler:codex/close-unused-local-stdin
Open

Close unused stdin for noninteractive local commands#579
OskarEichler wants to merge 1 commit into
capistrano:masterfrom
OskarEichler:codex/close-unused-local-stdin

Conversation

@OskarEichler

Copy link
Copy Markdown

Close child stdin immediately when a local command has no interaction handler. Commands such as cat otherwise wait indefinitely for EOF even though SSHKit has no producer for their input. Interaction-handler commands keep the stream open.

A bounded dual-Ruby local-process model reproduces the hang before and clean EOF after; interaction cases remain green. The unchanged suite passes 218 tests /3,411 assertions. No repository tests were changed.

@OskarEichler
OskarEichler force-pushed the codex/close-unused-local-stdin branch from 8360081 to 29ea27d Compare August 30, 2026 10:38
@OskarEichler
OskarEichler force-pushed the codex/close-unused-local-stdin branch from 29ea27d to 035e6f4 Compare August 30, 2026 12:37
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.

1 participant