non-block reading from pipe stdout
kdevel
kdevel at vogtner.de
Tue Oct 3 12:24:00 UTC 2017
On Tuesday, 3 October 2017 at 11:36:28 UTC, Oleg B wrote:
>> 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?
Your programm shall not read before data is available. Use
core.sys.posix.sys.select to check if read would block on a
blocking socket.
More information about the Digitalmars-d-learn
mailing list