Skip to content

Updater: skip the update when the running binary was replaced on disk - #50

Merged
LudaLunizz merged 1 commit into
Silvertree2010:mainfrom
LudaLunizz:updater-deleted-exe-2
Nov 19, 2026
Merged

LudaLunizz merged 1 commit into
Silvertree2010:mainfrom
LudaLunizz:updater-deleted-exe-2

Conversation

@LudaLunizz

Copy link
Copy Markdown
Collaborator

Replaces #48, which conflicted once #47 was rebase-merged (same change, rebased onto main).

When the binary is replaced while noname runs, Linux names the running executable .../noname (deleted). The updater then swapped the new build in at that name and left a stray noname (deleted) file next to the real binary, which was never updated. Now the check skips with "noname was replaced on disk, restart to use it". fmt, clippy -D warnings and tests clean. No issue (small fix).

🤖 Generated with Claude Code

When the noname binary is replaced while noname runs (another noname
updated it, or it was installed again), Linux names the running
executable `.../noname (deleted)`. The updater swapped the new build in
at that name, so it left a stray file `noname (deleted)` next to the
real binary and the real one was never updated by it.

Now the update check skips with "noname was replaced on disk, restart to
use it" in that case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b5a2921b-5632-4a3f-ad8f-11f1b50bfb67
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@LudaLunizz
LudaLunizz merged commit a1880b6 into Silvertree2010:main Nov 19, 2026
5 checks passed
@LudaLunizz LudaLunizz mentioned this pull request Nov 19, 2026
@LudaLunizz
LudaLunizz deleted the updater-deleted-exe-2 branch November 27, 2026 19:24
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