# std.Build.Cache: handle ENOENT on createFile race · gitcafe/zig

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

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

Visibility: public

Requested revision: 2b0929929d67e222ca6a9523a3a594ed456c4a51

Requested commit: 2b0929929d67e222ca6a9523a3a594ed456c4a51

Commit: 2b0929929d67e222ca6a9523a3a594ed456c4a51

Tree: 27d50d65e7e55e07c609d42c7ce7db98170120a4

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Build.Cache: handle ENOENT on createFile race

There are no dir components, so you would think that this was
unreachable, however we have observed on macOS two processes racing
to do openat() with O_CREAT manifest in ENOENT.

```

## Parents

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

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