# std.Io.Threaded: fix FreeBSD Futex max_waiters \(\#30094\) · gitcafe/zig

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

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

Visibility: public

Requested revision: fd74c5742d3c8343868516c03a6a0695280744d1

Requested commit: fd74c5742d3c8343868516c03a6a0695280744d1

Commit: fd74c5742d3c8343868516c03a6a0695280744d1

Tree: 0988ebfa90fe3da65d12be7d682a7dc797c925a8

Author: hubidubi

Committer: Andrew Kelley

## Message

```
std.Io.Threaded: fix FreeBSD Futex max_waiters (#30094)

On FreeBSD, the maximum waiters should be Cs INT_MAX instead of the maximum of a u32. Waiting for the Io.Event in the broadcast test triggers this bug.

Resolves #30715

Co-authored-by: Simon Galli <hubi@hubidubi.net>
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/30094
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
Co-authored-by: hubidubi <hubidubi@noreply.codeberg.org>
Co-committed-by: hubidubi <hubidubi@noreply.codeberg.org>

```

## Parents

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

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