mirror of
https://github.com/ziglang/zig.git
synced 2026-03-15 15:50:31 +00:00
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.