# linux: do not set stack size hard limit · gitcafe/zig

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

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

Visibility: public

Requested revision: 2dd7c6b268a838d4a130ac2eb88f4267598bb42e

Requested commit: 2dd7c6b268a838d4a130ac2eb88f4267598bb42e

Commit: 2dd7c6b268a838d4a130ac2eb88f4267598bb42e

Tree: 420af4c56dc1db2c6816ece9ba60756981b61b21

Author: Michael Dusan

Committer: Andrew Kelley

## Message

```
linux: do not set stack size hard limit

At main startup, if the ELF auxiliary vector contains a stacksize value,
use it as a hint for the minimum stacksize required by the executable.

1. Never lower the hard-limit. Once a hard-limit is lowered, then it can
   never be increased (including child processes).

2. If hint exceeds hard-limit then clamp hint to hard-limit.

3. If soft-limit exceeds hint then do nothing.

```

## Parents

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

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