Skip to content

unix: Fix EINTR handling around termios - #985

Merged
Leonard Hecker (lhecker) merged 2 commits into
mainfrom
dev/lhecker/sys-unix-fixes-termios
Oct 7, 2026
Merged

Leonard Hecker (lhecker) merged 2 commits into
mainfrom
dev/lhecker/sys-unix-fixes-termios

Conversation

@lhecker

Copy link
Copy Markdown
Member
  • While tcgetattr cannot EINTR, tcsetattr can
  • It appears as if other apps restore the pipe flags on exit

// Disable software flow control.
| libc::IXON
// Disable sending of start/stop characters.
| libc::IXOFF

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These new additions stem from a re-read of stty -raw.

Comment thread crates/edit/src/sys/unix.rs Outdated
@lhecker
Leonard Hecker (lhecker) merged commit 67543cb into main Oct 7, 2026
6 checks passed
@lhecker
Leonard Hecker (lhecker) deleted the dev/lhecker/sys-unix-fixes-termios branch October 7, 2026 23:44
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.

2 participants