# std: Better handing of POLLHUP in ChildProcess \(\#8988\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 072c3202c36ab05e4b2e61a23d6b870cb949feaf

Requested commit: 072c3202c36ab05e4b2e61a23d6b870cb949feaf

Commit: 072c3202c36ab05e4b2e61a23d6b870cb949feaf

Tree: 8a61c419aaae6c2a90594a5df419644af4459afd

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
std: Better handing of POLLHUP in ChildProcess (#8988)

* std: Better handing of POLLHUP in ChildProcess

Upon hitting the EOF condition there are two main differences between
how Linux and the *BSD-derived systems behave: the former sets POLLHUP
and POLLIN and, after reading any residual data, only POLLHUP remains
set. The latter signal the EOF condition by setting both flags thus
requiring some extra checks to determine if the stream is "done".

DragonFly workaround/hack for POLLHUP is no longer required.

Closes #8969
```

## Parents

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

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