Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle EOF on stdin better #2528

Merged
merged 5 commits into from
Jan 8, 2022
Merged

Handle EOF on stdin better #2528

merged 5 commits into from
Jan 8, 2022

Conversation

dankamongmen
Copy link
Owner

@dankamongmen dankamongmen commented Jan 5, 2022

Once we've received EOF on stdin, stop adding new input to the user queue. This input could come from e.g. a keyboard attached to the terminal when input is redirected from some file. After seeing NCKEY_EOF, the user ought see no new input.

Account for the EOF event by posting to the readiness file descriptor provided to the user. Closes #2525.

Don't use sigaltstack() when built with ASAN stupport; they're incompatible. Closes #2529.

Track EOF in ncdirect and interpret Ctrl+'d' as EOF. Closes #2521.

@dankamongmen dankamongmen force-pushed the dankamongmen/fucking-input branch from b459af7 to 46a062f Compare January 5, 2022 04:48
@dankamongmen dankamongmen force-pushed the dankamongmen/fucking-input branch 3 times, most recently from 3e475ff to 2bb645c Compare January 6, 2022 03:22
@dankamongmen dankamongmen force-pushed the dankamongmen/fucking-input branch from b9b2f8b to 89a7eb0 Compare January 8, 2022 01:08
@dankamongmen dankamongmen force-pushed the dankamongmen/fucking-input branch from 89a7eb0 to 6997c1f Compare January 8, 2022 01:15
@dankamongmen dankamongmen merged commit 92bda51 into master Jan 8, 2022
@dankamongmen dankamongmen deleted the dankamongmen/fucking-input branch January 8, 2022 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant