News for hackers. Stuff that matters.
Re:A new kernel polling interface by benwills on Thursday August 30, 2018 @02:44AM (#17874565)
Wow. When I saw your code, I thought to myself "yeah, but does it work when the socket is for a client?" Turns out, it does.

My only guess is that I was botching something else when I was digging into this a few years ago.

I can't tell you how much I appreciate you putting that together. This seriously changes a lot of what I work on. Thank you.

The client code I wrote: https://gist.github.com/benwills/95ee844853d3b18588fb3df7d56...

Re:A new kernel polling interface by caf on Thursday August 30, 2018 @09:10AM (#17876356)
Good example.

The errors are just because you need to check for EAGAIN or EWOULDBLOCK when read() returns -1, and not bail out when that happens.