Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,9 @@ export function resolveOwnFingerprint(spawnedValue: string | undefined, scriptPa

/** tmp+fsync+rename (same shape as web/api.ts atomicWriteConfig) — a torn
* write must never leave a half-file behind (#406 family). Shared by the
* proxy-origin record and every registry marker. */
function atomicWriteJson(obj: unknown, filePath: string): void {
* proxy-origin record, every registry marker, and the #5955 wedged-holder
* ledger. */
export function atomicWriteJson(obj: unknown, filePath: string): void {
fs.mkdirSync(path.dirname(filePath), { recursive: true });
const tempPath = `${filePath}.${process.pid}.${randomUUID()}.tmp`;
let descriptor: number | undefined;
Expand Down
Loading
Loading