Skip to content

fix: remove child process spawn on foreground auto-update restart - #45

Closed
branarakic wants to merge 3 commits into
mainfrom
fix/foreground-autoupdate-double-spawn
Closed

fix: remove child process spawn on foreground auto-update restart#45
branarakic wants to merge 3 commits into
mainfrom
fix/foreground-autoupdate-double-spawn

Conversation

@branarakic

Copy link
Copy Markdown
Contributor

Migrated from dkg-v9 PR #158

Under systemd, the foreground daemon spawned a child process then exited, causing systemd to restart the service — resulting in two competing daemon instances. Let systemd handle the restart natively since the releases/current symlink is already swapped.

Niks988 added 3 commits March 16, 2026 10:54
Under systemd, the foreground daemon spawned a child process then
exited, causing systemd to restart the service — resulting in two
competing daemon instances. Let systemd handle the restart natively
since the releases/current symlink is already swapped.

Made-with: Cursor
dkg start -f now runs through a foreground supervisor loop that catches
exit code 75 and respawns from releases/current, matching the background
supervisor pattern. Ensures auto-update works on edge devices and systems
without an external process manager.

Made-with: Cursor
Covers exit-code-75 restart, clean exit, crash recovery with counter
reset, SIGINT forwarding to child, and spawn error handling.

Made-with: Cursor
@branarakic

Copy link
Copy Markdown
Contributor Author

V10 Review: LGTM — reviewed in context of V10 spec. Ready to merge.

@branarakic

Copy link
Copy Markdown
Contributor Author

Superseded — all changes from this PR have been consolidated into the v10-rc branch via the V10 consolidation effort. See branch v10-rc for the merged result.

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.

3 participants