forked from leanprover/lean4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: lake: open config trace as read-only first & avoid deadlock (lea…
…nprover#3254) Lake previously opened the configuration trace as read-write even if it does not update the configuration. This meant it failed if the trace was read-only. With this change, it now first acquires a read-only handle and then, if and only if it determines the need for a reconfigure, does it re-open the file with a read-write handle. Also, this change fixes a potential deadlock (Lake will error instead) and generally clarifies the trace locking code.
- Loading branch information
1 parent
ab53f9e
commit 435fe6a
Showing
1 changed file
with
75 additions
and
44 deletions.
There are no files selected for viewing
This file contains 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