aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread.zig
diff options
context:
space:
mode:
authorAlec Fessler <afessler1998@gmail.com>2025-02-22 15:07:44 -0500
committerAndrew Kelley <andrew@ziglang.org>2025-02-24 04:36:14 -0500
commit1cc388d5263058f9e9eecc410eea825a9a58e143 (patch)
tree90a02eaeeb263bd175a9525fd27e16d8eb269acb /lib/std/Thread.zig
parentecc76348e6858f00b920d8dc9e44a6e703d8e497 (diff)
downloadzig-1cc388d5263058f9e9eecc410eea825a9a58e143.tar.gz
zig-1cc388d5263058f9e9eecc410eea825a9a58e143.zip
stdlib: handle EEXIST in mmap with FIXED_NOREPLACE. Fixes #21475
Diffstat (limited to 'lib/std/Thread.zig')
-rw-r--r--lib/std/Thread.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig
index eaf136d0eb..27b2b11c4a 100644
--- a/lib/std/Thread.zig
+++ b/lib/std/Thread.zig
@@ -1420,6 +1420,7 @@ const LinuxThreadImpl = struct {
error.PermissionDenied => unreachable,
error.ProcessFdQuotaExceeded => unreachable,
error.SystemFdQuotaExceeded => unreachable,
+ error.MappingAlreadyExists => unreachable,
else => |e| return e,
};
assert(mapped.len >= map_bytes);