You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My diagnosis is that FillableStdin fails to pass the Close() call through to CancelableStdin, which would stop the select. This patch fixes the issue, but may introduce other issues:
I'm using the following test case with readline v1.5.1,
go version go1.20 linux/amd64
:If I enter
quit
at the prompt and wait, I get the following output:but then the program hangs without exiting. SIGQUIT shows that the main goroutine is blocked in
(*Instance).Close()
:https://gist.github.com/slingamn/eb5bea5e623e848cd0903c29b155a0b3
It seems that this
Wait()
call:readline/terminal.go
Line 228 in 7f93d88
is blocked by the failure of this
select
to terminate:readline/std.go
Lines 120 to 125 in 7f93d88
My diagnosis is that
FillableStdin
fails to pass theClose()
call through toCancelableStdin
, which would stop the select. This patch fixes the issue, but may introduce other issues:slingamn@4c5bb20
Thanks very much for your time.
The text was updated successfully, but these errors were encountered: