# std.os.abort patch cleanups · gitcafe/zig

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

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

Visibility: public

Requested revision: 073762395ef3beddf458d87a6b7aad4342b9af8e

Requested commit: 073762395ef3beddf458d87a6b7aad4342b9af8e

Commit: 073762395ef3beddf458d87a6b7aad4342b9af8e

Tree: cd0d35dfc53bb6ac67d6a1c39123ad0486a05b79

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.os.abort patch cleanups

 * move global into function scope
 * clarify comments
 * avoid unnecessary usage of std.atomic API
 * switch on error instead of `catch unreachable`
 * call linux.gettid() instead of going through higher level API and
   doing unnecessary casting

```

## Parents

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

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