Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A new kernel polling interface. Parent comment
The errors are just because you need to check for EAGAIN or EWOULDBLOCK when read() returns -1, and not bail out when that happens.
There are no comments on this comment yet.
The errors are just because you need to check for EAGAIN or EWOULDBLOCK when read() returns -1, and not bail out when that happens.