We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f5c888 commit 8a2901bCopy full SHA for 8a2901b
1 file changed
src/rebuild-lock.ts
@@ -69,5 +69,10 @@ export function withRebuildLock(work: () => void): void {
69
} finally {
70
release(fd);
71
}
72
+ } else {
73
+ // A third (or later) waiter lost the race to reacquire the lock after the
74
+ // first holder finished. Another process is now rebuilding — wait for it
75
+ // to release before returning, so the caller can safely load the binary.
76
+ waitForLockRelease();
77
78
0 commit comments