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 Ctrl-C signals in uv run and uv tool run #5395

Merged
merged 1 commit into from
Jul 24, 2024
Merged

Conversation

charliermarsh
Copy link
Member

Summary

This is a bit simpler than #5333, but seems to work in my testing on macOS and Windows. It's based on implementations that I found in Pixi and Wasmer.

Closes #5257.

Test Plan

On both macOS and Windows:

  • cargo run -- tool run --from jupyterlab jupyter-lab -- hit Ctrl-C; verify that the process exits and the terminal is left in a good state.
  • cargo run -- run python -- hit Ctrl-C; verify that the process does not exit, but does on Ctrl-D.

@charliermarsh charliermarsh added bug Something isn't working cli Related to the command line interface preview Experimental behavior labels Jul 24, 2024
@charliermarsh charliermarsh merged commit 82f4864 into main Jul 24, 2024
55 checks passed
@charliermarsh charliermarsh deleted the charlie/sig branch July 24, 2024 12:33
@bluss
Copy link
Contributor

bluss commented Jul 24, 2024

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cli Related to the command line interface preview Experimental behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ctrl-C to to uv run is not handled by the child process
3 participants