Repository navigation
v0.1.1: ExecProcess stdin fix (hotfix)
What's Fixed
ExecProcess stdin conflict without Alt Screen
This hotfix resolves a critical bug where running ExecProcess() without Alt Screen mode caused stdin race conditions with child processes.
Problem
When ExecProcess() was called without alt screen, the inputReader goroutine remained blocked in Read(), creating a race condition for stdin access. This caused issues with interactive commands like vim, ssh, python.
Solution
- Added
CancelableReaderwrapper with channel-based cancellation support stopInputReader()now callsCancel()to immediately unblock any pending reads- Fixed goroutine defer to properly clean up state on natural exit (EOF)
Reported by
GoSh Shell Project
Full Changelog: v0.1.0...v0.1.1