# linux: Doc and check retval for no-fail pid calls · gitcafe/zig

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

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

Visibility: public

Requested revision: 6dbfba526f7b7cf1256c133d025b11409c97dda7

Requested commit: 6dbfba526f7b7cf1256c133d025b11409c97dda7

Commit: 6dbfba526f7b7cf1256c133d025b11409c97dda7

Tree: d2b58d556ea8f61a38f87f6e98ce6556fa30fc93

Author: Brandon Black

Committer: Brandon Black

## Message

```
linux: Doc and check retval for no-fail pid calls

The switch from @bitCast() to @intCast() here safety-checks
Linux's assertion that these 3 calls never return errors (negative
values as pid_t).  getppid() can legally return 0 if the parent is
in a different pid namespace, but this is not an error.

```

## Parents

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

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