Repository navigation
Log why the server stopped before removing its marker - #6
Merged
Merged
Conversation
The server removed ui.pid, then wrote "paddock stopped (...)" to its log. Whatever waits for ui.pid to go could read the log in between: the idle test did on Ubuntu CI (server_stops_itself_when_no_page_is_open, after the merge of #5), and found no "no page open" yet. The line is now written first, so once the marker is gone the log already says why. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013DS9XhJVN73JGnZEqrX89o
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.
CI on main failed on Ubuntu after #5 was merged (run 45140844082):
server_stops_itself_when_no_page_is_openfound no "no page open" inui.log.Cause: a race. When it stops, the server removed
ui.pidand only then wrote "paddock stopped (no page open)" to its log. The test waits forui.pidto go and reads the log straight away, so a fast reader could land between the two. It passed in #5's own run on the same code; it was already there before #5.Fix: write the log line first, then remove the marker, so once
ui.pidis gone the log already says why the server stopped. A restart still says "starting the new version", in the same new order.Checked: clippy clean; all tests pass; the idle test 10 times in a row.
🤖 Generated with Claude Code
https://claude.ai/code/session_013DS9XhJVN73JGnZEqrX89o