Repository navigation
server: a crash's stale note and graph temporaries are cleared when the server opens their folders - #3132
Merged
Conversation
ashhart
force-pushed
the
lead/stale-temps
branch
from
November 13, 2026 15:49
d68e140 to
3360d1d
Compare
This was referenced Nov 15, 2026
…he server opens their folders
….zig stays at 600 lines The same two calls, made at the same point in Server.init.
ashhart
force-pushed
the
lead/stale-temps
branch
from
November 16, 2026 02:41
3360d1d to
c0ac35b
Compare
ultradaoto
added a commit
to ultradaoto/TensorFold
that referenced
this pull request
Nov 16, 2026
…lines merge without a conflict
ultradaoto
added a commit
to ultradaoto/TensorFold
that referenced
this pull request
Nov 17, 2026
…dds at the top
ashhart
pushed a commit
that referenced
this pull request
Nov 19, 2026
ashhart
pushed a commit
to ultradaoto/TensorFold
that referenced
this pull request
Nov 19, 2026
…dds at the top
ashhart
pushed a commit
that referenced
this pull request
Nov 19, 2026
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.
A crash can leave
.tmp.<pid>.<n>temporaries beside notes and the--slide-graphfile. The server now clears its own stale ones when it opens those folders: a temporary is removed only when its name matches exactly as{d}prints it (no+,_or leading zeros), its pid is 1 to 2^31-1 and no longer running (or the file is a day old), and in the folder holding--slide-graphonly that graph's own temporaries are touched. A bare file name is cleaned in the current folder. A name likex.tmp.4294967295.0no longer crashes the open.Tests:
test-server-cpu1331 pass, 7 skip; against the base the new test fails (the stale file stays). Cross-compiles for Windows and Linux; the test skips on Windows, where the day-old fallback would needDir.setTimestamps, which panics there in Zig 0.17.