Repository navigation
fix: stop leaving a zombie git process behind every project pull - #293
Merged
Merged
Conversation
Moves git-rs to v0.2.1, which keeps git's automatic maintenance in the foreground after a fetch instead of letting it detach and end up orphaned on PID 1.
Merged
fernandorocagonzalez
added a commit
to OpusProjects/unified-gitops
that referenced
this pull request
Nov 17, 2026
Moves git-rs to v0.2.1 (OpusProjects/git#4). After a fetch, git used to detach its automatic maintenance, which then got orphaned on PID 1 and stayed behind as a `[git] <defunct>`, one per pull. Now it runs in the foreground, inside the git we already wait on. Same fix unified-api got in OpusProjects/unified-api#293. Only the git-rs entry changes in Cargo.lock, and it builds with --locked. Tests pass locally. It needs #54 merged first so deny goes green.
fernandorocagonzalez
pushed a commit
that referenced
this pull request
Nov 17, 2026
🤖 I have created a release *beep* *boop* --- ## [0.38.1](v0.38.0...v0.38.1) (2026-11-17) ### Fixed * run the service under tini so orphaned processes are reaped ([#291](#291)) ([c26f21f](c26f21f)) * stop leaving a zombie git process behind every project pull ([#293](#293)) ([709cd8e](709cd8e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves git-rs to v0.2.1 (OpusProjects/git#4). After a fetch, git used to detach its automatic maintenance, which then got orphaned on PID 1 and stayed behind as a
[git] <defunct>, one per pull. Now it runs in the foreground, inside the git we already wait on, so it is bounded by the project's timeout.This goes together with #291 (tini as PID 1). Either one fixes the git zombies on its own. tini also covers anything a connector script leaves behind, and this covers whoever runs the binary without an init, like a plain
docker runor a systemd unit with a custom setup.Only the git-rs entry changes in Cargo.lock. I edited it by hand because
cargo update -p git-rsalso re-resolved unrelated crates (windows-sys, base64). Build with --locked, clippy and the full test suite all pass locally.