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

Ignore SIGINT #73

Merged
merged 4 commits into from
Nov 4, 2024
Merged

Ignore SIGINT #73

merged 4 commits into from
Nov 4, 2024

Conversation

tfpf
Copy link
Owner

@tfpf tfpf commented Nov 4, 2024

Bash runs _before_command and _after_command even on receiving SIGINT when it is idle. Holding down the keys to repeatedly send SIGINTs causes this program to crash for unclear reasons. Hence, ignore the signal. (This is a short-running program, after all.) Also, revert to using the exception-throwing functions (see 5e5f44a) because an exception not thrown has close to (if not exactly) zero cost.

@tfpf tfpf merged commit 2d5933a into main Nov 4, 2024
8 checks passed
@tfpf tfpf deleted the ignore-sigint branch November 4, 2024 15:46
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.

1 participant