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

Clippy leaves cargo running in the background on SIGTERM #4505

Open
Nemo157 opened this issue Sep 5, 2019 · 0 comments
Open

Clippy leaves cargo running in the background on SIGTERM #4505

Nemo157 opened this issue Sep 5, 2019 · 0 comments

Comments

@Nemo157
Copy link
Member

Nemo157 commented Sep 5, 2019

When you kill cargo-clippy via SIGTERM it will leave a detached cargo check process running in the background. If, for example, the clippy instance was launched by your editor and killed when you exited it this can result in a long duration of Blocking waiting for file lock on build directory when you attempt to run cargo test.

Test reproduction:

  • Run cargo clean && cargo clippy on a project that will take a decent while to check
  • In another terminal run killall cargo-clippy to send SIGTERM
  • In the original terminal watch the process exit, but the output from checking continue to be printed

This appears to be already fixed by #3837, so maybe not worth trying to fix the current subcommand, I'm mostly opening this as informational in case others run into it as well.

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

1 participant