Paul Eggert <[EMAIL PROTECTED]> writes:

> James Antill <[EMAIL PROTECTED]> 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 -- [EMAIL PROTECTED]
:0:
* ^From: [EMAIL PROTECTED]
/dev/null


_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to