aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Module.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-12-10 20:44:00 -0800
committerAndrew Kelley <andrew@ziglang.org>2024-12-11 11:56:44 -0800
commit7ff42eff914e2e501f570bb8c530719bb3a2521a (patch)
treeec5da1b9e68065a5dd1125751bb04f7292b23989 /lib/std/Build/Module.zig
parentd37ee79535188263bd6a907eb26a48364c4c12f2 (diff)
downloadzig-7ff42eff914e2e501f570bb8c530719bb3a2521a.tar.gz
zig-7ff42eff914e2e501f570bb8c530719bb3a2521a.zip
std.Build.Cache.hit: work around macOS kernel bug
The previous commit cast doubt upon the initial report about macOS kernel behavior, identifying another reason that ENOENT could be returned from file creation. However, it is demonstrable that ENOENT can be returned for both cases: 1. create file race 2. handle refers to deleted directory This commit re-introduces the workaround for the file creation race on macOS however it does not unconditionally retry - it first tries again with O_EXCL to disambiguate the error condition that has occurred.
Diffstat (limited to 'lib/std/Build/Module.zig')
0 files changed, 0 insertions, 0 deletions