# std: add c\.\_exit\(\) and use in ChildProcess · gitcafe/zig

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

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

Visibility: public

Requested revision: 988ddd1bed003f2c2e7436d5f245a06cb8d024ce

Requested commit: 988ddd1bed003f2c2e7436d5f245a06cb8d024ce

Commit: 988ddd1bed003f2c2e7436d5f245a06cb8d024ce

Tree: c49caa1fe8eba717b77bd491df56ff049629d12e

Author: Isaac Freund

Committer: Andrew Kelley

## Message

```
std: add c._exit() and use in ChildProcess

This issue with atexit() functions after forking isn't isolated to linux
I'm sure, the proper way to do this when linking libc is to use _exit(2)

```

## Parents

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

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