Fix spurious exit while waiting for a key with --listen
Before adoption: this commit came in with the history the project adopted, so no landing records it.
- getch() charged EINTR against a 100 iteration limit meant for read attempts, and the count only reset once a byte was read - So signals arriving during an idle prompt drained it, and running out returned getCharError, which became Event{Fatal} and exit status 2 - Only the cancellable path is affected, hence only --listen - select() is not restarted by SA_RESTART, unlike the blocking read on the non-cancellable path, so it is the only one that sees EINTR - waitReadable() already retries EINTR without a limit Fix #4917
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+3 added−3 removed
- other:+3 added−3 removed