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

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

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

Visibility: public

Requested revision: 1aeee80344387509bc898abf4789593bcfa5353a

Requested commit: 1aeee80344387509bc898abf4789593bcfa5353a

Commit: 1aeee80344387509bc898abf4789593bcfa5353a

Tree: 0bcda0b2d819844850980496a7fe597c7c588406

Author: LemonBoy

Committer: GitHub

## 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

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

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