Skip to content

main: Fix ctrl-c being ignored at the upload confirmation prompt - #303

Merged
jerry-skydio merged 1 commit into
mainfrom
brian.kubisiak/revup/main/fix-ctrl-c
Sep 24, 2026
Merged

jerry-skydio merged 1 commit into
mainfrom
brian.kubisiak/revup/main/fix-ctrl-c

Conversation

@brian-kubisiak-skydio

Copy link
Copy Markdown
Contributor

Installing a loop signal handler for sigint replaces python's default
handler, so KeyboardInterrupt is never raised. Synchronous code
running inside main, such as the input() in wait_for_confirmation,
blocks until enter is pressed, after which the queued cancel fires at
the next await and interrupts the upload partway through pushing.

Keep the default handler instead, and cancel main once the
KeyboardInterrupt reaches the top level so it still unwinds and cleans
up rather than being abandoned suspended.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Signed-off-by: Brian Kubisiak brian.kubisiak@skydio.com

Installing a loop signal handler for sigint replaces python's default
handler, so KeyboardInterrupt is never raised. Synchronous code
running inside main, such as the input() in wait_for_confirmation,
blocks until enter is pressed, after which the queued cancel fires at
the next await and interrupts the upload partway through pushing.

Keep the default handler instead, and cancel main once the
KeyboardInterrupt reaches the top level so it still unwinds and cleans
up rather than being abandoned suspended.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Brian Kubisiak <brian.kubisiak@skydio.com>
@brian-kubisiak-skydio

Copy link
Copy Markdown
Contributor Author

Reviews in this chain:
└#303 main: Fix ctrl-c being ignored at the upload confirmation prompt

@brian-kubisiak-skydio

Copy link
Copy Markdown
Contributor Author
# head base diff date summary
0 f37d8776 cda06a4a diff Sep 24 14:25 PM 1 file changed, 6 insertions(+), 6 deletions(-)

@jerry-skydio
jerry-skydio merged commit c7a2fae into main Sep 24, 2026
6 checks passed
@jerry-skydio
jerry-skydio deleted the brian.kubisiak/revup/main/fix-ctrl-c branch September 24, 2026 20:31
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