bug-coreutils
[Top][All Lists]
Advanced

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

Re: [bug-grep] [patch] getting '--devices=skip' to work


From: P
Subject: Re: [bug-grep] [patch] getting '--devices=skip' to work
Date: Wed, 24 Nov 2004 10:31:05 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040124

Paul Eggert wrote:
Tim Waugh <address@hidden> writes:


 https://bugzilla.redhat.com/beta/show_bug.cgi?id=135942

FYI this also could be a dupe:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=135905

Of the coreutils programs that use O_NONBLOCK:

   chown and touch don't do I/O.
   dd uses O_NONBLOCK only when the user asks for it explicitly.
   shred uses it only on /dev/random.
   stty uses it only on its argument, which is supposed to be a device.
     (There is a FIXME that this assumption should be checked, but there's more
      to be fixed here than O_NONBLOCK.)
   tail does nonblocking reads in some cases but doesn't use select() or poll().

None of these uses would run afoul of the bug that you mentioned, as
far as I can tell.

POSIX is pretty vague about what O_NONBLOCK does, except for pipes,
fifos, and sockets.  So if we limited ourselves to what POSIX
required, coreutils would require several changes.  I wouldn't bother
with this, though, unless there's a real problem.

So did the following change make it into redhat kernel-2.6.8-1.624
http://www.ussg.iu.edu/hypermail/linux/kernel/0410.0/index.html#0210
and was then subsequently removed?
Note I don't ever see it going into the official kernel.

--
Pádraig Brady - http://www.pixelbeat.org
--




reply via email to

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