# std.Progress: fix race condition with setIpcFd · gitcafe/zig

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

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

Visibility: public

Requested revision: aca7feb8fac2fae8f0b79a2cfac2a248bcd8451b

Requested commit: aca7feb8fac2fae8f0b79a2cfac2a248bcd8451b

Commit: aca7feb8fac2fae8f0b79a2cfac2a248bcd8451b

Tree: 269729d1065e96d544ddc3a7cd1fd803b1f91c44

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Progress: fix race condition with setIpcFd

The update thread was sometimes reading the special state and then
incorrectly getting 0 for the file descriptor, making it hang since it
tried to read from stdin.

```

## Parents

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

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