# cache: Fix LockViolation during C compilation paths \(\#13591\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/a4418a8fd6663f532a021c3ad2ae807a6ccd62cc)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: a4418a8fd6663f532a021c3ad2ae807a6ccd62cc

Requested commit: a4418a8fd6663f532a021c3ad2ae807a6ccd62cc

Commit: a4418a8fd6663f532a021c3ad2ae807a6ccd62cc

Tree: 4215b70f84b4dceb2d78bf2014a6fdd334e7d158

Author: Casey Banner

Committer: Andrew Kelley

## Message

```
cache: Fix LockViolation during C compilation paths (#13591)

- C compilation flows didn't hold an exclusive lock on the cache manifest file when writing to it in all cases
- On windows, explicitly unlock the file lock before closing it
```

## Parents

- [bb957a976d214915c51d72a8112ef905a3777602](https://git.cafe/gitcafe/zig/commit/bb957a976d214915c51d72a8112ef905a3777602?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/a4418a8fd6663f532a021c3ad2ae807a6ccd62cc?format=markdown)
