bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: dd PATCH: add conv=direct


From: James Antill
Subject: Re: dd PATCH: add conv=direct
Date: Mon, 19 Apr 2004 16:30:54 -0400
User-agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, linux)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]