# std.ChildProcess: bypass libc exit\(\) in fork child error case · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/29fd13009391060a2d6783fb0b91cb075c2e6cce)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 29fd13009391060a2d6783fb0b91cb075c2e6cce

Requested commit: 29fd13009391060a2d6783fb0b91cb075c2e6cce

Commit: 29fd13009391060a2d6783fb0b91cb075c2e6cce

Tree: b2f2b9603c1ad67a6d59c6d38f52b962d1091bb8

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
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?"

```

## Parents

- [5fed42d70a9ce23581bc8e1651a417161f269663](https://git.cafe/gitcafe/zig/commit/5fed42d70a9ce23581bc8e1651a417161f269663?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/29fd13009391060a2d6783fb0b91cb075c2e6cce?format=markdown)
