#13965 closed bug (fixed)

Polling /dev/null does not conform to POSIX

Reported by: sfanxiang Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: System/POSIX Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All

Description

Polling /dev/null with POLLOUT results in POLLOUT | POLLERR | POLLHUP, but the POSIX specification shows:

POLLHUP

... This event and POLLOUT are mutually-exclusive; a stream can never be writable if a hangup has occurred.

Change History (12)

comment:1 by sfanxiang, 22 months ago

Conceptual patches attached.

comment:2 by korli, 22 months ago

Have you eventually unit tests to attach?

comment:3 by sfanxiang, 22 months ago

Unit test attached.

comment:4 by sfanxiang, 22 months ago

For reference, this bug was discovered here:

https://github.com/haikuports/haikuports/pull/2124

comment:5 by pulkomandy, 22 months ago

Please submit patches at https://review.haiku-os.org rather than on the bugtracker.

comment:6 by sfanxiang, 22 months ago

Please submit patches at ​https://review.haiku-os.org rather than on the bugtracker.

Submitted as changes 64-68.

comment:7 by korli, 21 months ago

Resolution: fixed
Status: newclosed

Applied in hrev51811. Thanks!

Note: See TracTickets for help on using tickets.