Skip to content

fix detecting the cargo pid#24

Merged
flub merged 2 commits intomainfrom
flub/cargo-pid-bugs
Mar 21, 2026
Merged

fix detecting the cargo pid#24
flub merged 2 commits intomainfrom
flub/cargo-pid-bugs

Conversation

@flub
Copy link
Copy Markdown
Owner

@flub flub commented Mar 21, 2026

The pid file sometimes did not contain a valid pid, but still
signalled reuse. Which was wrong.

Doctests in 2024 edition didn't detect the correct cargo pid anymore,
resulting in many directories being created.

flub added 2 commits March 21, 2026 15:34
This was accidentaly comparing the string used when the pid failed to
be read with itself. Instead this should have been a failure that
results in not reusing the directory.

This now parses the read string into a pid to fix this.
They added another process in between for the regular case.
@flub flub merged commit b952c4e into main Mar 21, 2026
6 checks passed
@flub flub deleted the flub/cargo-pid-bugs branch March 21, 2026 16:04
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.

1 participant