Skip to content

Never report the current process as locking a file - #1904

Merged
SimonCropp merged 1 commit into
mainfrom
fix-file-lock-killer-self
Aug 29, 2026
Merged

Never report the current process as locking a file#1904
SimonCropp merged 1 commit into
mainfrom
fix-file-lock-killer-self

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

RmGetList includes the caller when the lock is held in process, which the new test confirms. FileLockKiller kills everything the list reports, so with Verify_KillProcessLockingFile enabled a file held open inside the test process made the test host kill itself: the run vanished with no diagnostics, and the write being retried could not have succeeded anyway.

The docs describe the target as external editor and diff processes, so the current process id is now skipped.

RmGetList includes the caller when the lock is held in process, which the new
test confirms. FileLockKiller kills everything the list reports, so with
Verify_KillProcessLockingFile enabled a file held open inside the test process
made the test host kill itself: the run vanished with no diagnostics, and the
write being retried could not have succeeded anyway.

The docs describe the target as external editor and diff processes, so the
current process id is now skipped.
@SimonCropp SimonCropp added this to the 33.0.0 milestone Aug 29, 2026
@SimonCropp
SimonCropp merged commit f0fdad5 into main Aug 29, 2026
6 of 7 checks passed
@SimonCropp
SimonCropp deleted the fix-file-lock-killer-self branch August 29, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant