aboutsummaryrefslogtreecommitdiff
path: root/src/windows_sdk.cpp
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2021-05-20 15:26:17 +0200
committerLemonBoy <thatlemon@gmail.com>2021-05-20 15:26:17 +0200
commitabfe7f96dd45e22d43c3e14ed64e1fbb8e94b419 (patch)
treee4283d3203940eb4588d8c87f12964ad6902dfb7 /src/windows_sdk.cpp
parent992c02ab95e8297a1558bcf011f15a5cf1cd8e1b (diff)
downloadzig-abfe7f96dd45e22d43c3e14ed64e1fbb8e94b419.tar.gz
zig-abfe7f96dd45e22d43c3e14ed64e1fbb8e94b419.zip
std: Call pthread_atfork only once
Some libc implementations (glib) deduplicate identical hooks, others (musl, macos) do not and blindly append them to an internal list. Ensure there's only a single call to pthread_atfork to prevent unbounded memory use when lots of threads/forks are used.
Diffstat (limited to 'src/windows_sdk.cpp')
0 files changed, 0 insertions, 0 deletions