Paul Eggert <address@hidden> writes:
> James Antill <address@hidden> writes:
>
>>> dd has new iflags= and oflags= options with the following flags:
>>>
>>> nonblock use non-blocking I/O
>>
>> What is this supposed to do when it gets EWOULDBLOCK? There seems to
>> be no change in the read/write code. So I can only assume it fails
>> with an error code
>
> Yes, that's what it does.
>
>> which seems like the worst behaviour possible.
>
> Its only current use that I can see is to have "dd" refuse to block.
> I can think of uses for that but admittedly they're not something that
> I would do often.
>
> What would be better behavior? That is, what uses should "dd" make of
> that flag?
Well it might be nice to read everything, but then stop when it would
block ... but I can't see why you want it to fail with an error though.
I can't imagine you'd want to do the whole poll() on blocked files
thing.
--
# James Antill -- address@hidden
:0:
* ^From: address@hidden
/dev/null