forked from QubesOS/qubes-app-u2f
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qubesu2f/tools/u2fdump: fix SIGINT handling
CancelledError thrown into loop.run_in_executor() gets raised back only on next iteration, so when ioctl was blocked there, it didn't really cancel the coroutine. Now this is done with loop's reader, with a catch that selectors don't generally work with ioctl(), it is only by chance that this particular character device has also read() defined which works almost exactly like the ioctl in question.
- Loading branch information
Showing
1 changed file
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters