On Tuesday, 3 October 2017 at 10:45:21 UTC, kdevel wrote:
On Tuesday, 3 October 2017 at 00:22:28 UTC, Oleg B wrote:but get error "Resource temporarily unavailable".You get EAGAIN because there is no data available at the time of reading.From the manpage of read: ERRORSEAGAIN Non-blocking I/O has been selected using O_NONBLOCK and no datawas immediately available for reading.
And I can't check this without using exception handling?