On Mon, Oct 06, 2014 at 01:08:57PM +0100, Dimitris Papastamos wrote: > The same piece of code marks the fd as readable on Linux.
I tested on NetBSD and it also seems to mark the fd readable. > Doing a very similar test with stdin and closing it before > the call to select(2) behaves as expected and marks the fd > as readable. To clarify, I meant calling select(2) on stdin and triggering EOF marks the fd as readable.