bug-grep
[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: Stepan Kasal
Subject: Re: [bug-grep] [patch] getting '--devices=skip' to work
Date: Fri, 19 Nov 2004 08:36:03 +0100
User-agent: Mutt/1.4.1i

Hello Tim,

> > >      while ((desc = open (file, O_RDONLY | O_NONBLOCK)) < 0
> > >              && errno == EINTR)

my intuition was that it's safer to find out that we don't want to grep
the file before we try to open it.

> Stop the bus!  There is a kernel change to do with opening normal
> files with O_NONBLOCK having unexpected consequences.  It's best
> avoided.

Together with this comment from Tim, O_NONBLOCK is out of question.
But I'll probably check in Benno's patch.

Yours,
        Stepan





reply via email to

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