diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-09-28 22:17:50 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-09-28 22:17:50 -0700 |
| commit | 29fd13009391060a2d6783fb0b91cb075c2e6cce (patch) | |
| tree | b2f2b9603c1ad67a6d59c6d38f52b962d1091bb8 /lib/std/thread.zig | |
| parent | 5fed42d70a9ce23581bc8e1651a417161f269663 (diff) | |
| download | zig-29fd13009391060a2d6783fb0b91cb075c2e6cce.tar.gz zig-29fd13009391060a2d6783fb0b91cb075c2e6cce.zip | |
std.ChildProcess: bypass libc exit() in fork child error case
Comment reproduced here:
If we're linking libc, some naughty applications may have
registered atexit handlers which we really do not want to
run in the fork child. I caught LLVM doing this and it
caused a deadlock instead of doing an exit syscall. In
the words of Avril Lavigne, "Why'd you have to go and
make things so complicated?"
Diffstat (limited to 'lib/std/thread.zig')
0 files changed, 0 insertions, 0 deletions
