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

CLI: Use a channel to signal that the main fn is done #4860

Conversation

xdoardo
Copy link
Contributor

@xdoardo xdoardo commented Jun 17, 2024

Tries to solve #4859. Use a channel to notify the setup thread that the main CLI function (deploy, tag, push..) is done and, in this case, should not wait for SIGINT to be received. Another approach could be that of simply calling .abort() on the JoinHandle.

@xdoardo xdoardo requested a review from syrusakbary as a code owner June 17, 2024 13:32
@xdoardo xdoardo requested a review from theduke June 17, 2024 13:37
Copy link
Member

@syrusakbary syrusakbary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it will be better for @theduke to review it

lib/cli/src/commands/mod.rs Outdated Show resolved Hide resolved
@xdoardo xdoardo merged commit 4e7d5d0 into main Jun 20, 2024
62 checks passed
@xdoardo xdoardo deleted the 4859-cli-newly-intalled-signal-handler-impedes-normal-termination-of-the-program branch June 20, 2024 09:15
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.

CLI: Newly intalled signal handler impedes normal termination of the program
3 participants