non-block reading from pipe stdout
Oleg B
code.viator at gmail.com
Tue Oct 3 11:36:28 UTC 2017
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:
>
> ERRORS
> EAGAIN Non-blocking I/O has been selected using
> O_NONBLOCK and no data
> was immediately available for reading.
And I can't check this without using exception handling?
More information about the Digitalmars-d-learn
mailing list