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

Ctrl+C does not work during y/N questions #8521

Open
sophie-h opened this issue Nov 4, 2024 · 4 comments
Open

Ctrl+C does not work during y/N questions #8521

sophie-h opened this issue Nov 4, 2024 · 4 comments
Milestone

Comments

@sophie-h
Copy link
Contributor

sophie-h commented Nov 4, 2024

Borg 1.4

Ctrl+C and SIGINT are not working if borg is asking a y/N question.

It would be convenient for API usage and command line usage, if aborting would work during questions as well.

@ThomasWaldmann
Copy link
Member

Hmm, isn't Ctrl-C only checked while the program is emitting output?

@sophie-h
Copy link
Contributor Author

sophie-h commented Nov 4, 2024

Not sure what you mean with emitting output. Writing to the repo? If so, I don't see why it should be limited to that.

@ThomasWaldmann
Copy link
Member

I mean console output. AFAIK the OS output routines check for Ctrl-C at output time and then send a signal to the user process.

@ThomasWaldmann
Copy link
Member

Hmm, does it work if you send SIGINT twice?

@ThomasWaldmann ThomasWaldmann added this to the 1.4.1 milestone Nov 8, 2024
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

No branches or pull requests

2 participants